Skip to content

Commit

Permalink
fix: get all alias from file after clicking refresh button (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouchouji authored Dec 6, 2024
1 parent eee25d9 commit a11c09c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ class AliasView implements vscode.TreeDataProvider<AliasItem> {
}

private getAliasTree(): AliasItem[] {
this.globalState.update(SYSTEM_ALIAS, getAliases());
const aliasTree = this.globalState.keys().reduce((aliases: AliasItem[], key: string) => {
const children = normalizeAliasesToArray<Alias>(this.globalState.get(key)).map((alias) => {
const { aliasName, command, description = '' } = alias;
Expand Down

0 comments on commit a11c09c

Please sign in to comment.