Commit f0fef4db authored by Tomas Vik (OOO back on 2026-08-31)'s avatar Tomas Vik (OOO back on 2026-08-31) 🌴
Browse files

fix: improve UX for removing accounts where there is no account

parent e9f0aeb6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -41,6 +41,10 @@ export async function addAccount() {

export async function removeAccount() {
  const accounts = accountService.getRemovableAccounts();
  if (accounts.length === 0) {
    await vscode.window.showInformationMessage(`No accounts to remove!`);
    return;
  }
  const result = await vscode.window.showQuickPick(
    accounts.map(a => ({ label: a.instanceUrl, description: a.username, id: a.id })),
    {