diff --git a/src/extension.ts b/src/extension.ts index 2311da8..273a8cc 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -291,7 +291,7 @@ class AliasView implements vscode.TreeDataProvider { this.globalState.update(alias.group, aliases); - this.refresh(alias); + this.refresh(); } async addToGroup(alias: AliasItem) { @@ -300,7 +300,7 @@ class AliasView implements vscode.TreeDataProvider { } const selectedGroup = await vscode.window.showQuickPick( - this.globalState.keys().filter((key) => key !== SYSTEM_ALIAS), + this.globalState.keys().filter((key) => ![SYSTEM_ALIAS, alias.group].includes(key)), { placeHolder: CHOOSE_GROUP_PLACEHOLDER }, );