Skip to content

Commit

Permalink
fix: quickPick does not close when an item is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeneos committed Jan 25, 2024
1 parent c4c25fe commit af4be29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vscode-extension/src/lib/ui/quickPick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class QuickPick<T extends vscode.QuickPickItem> implements vscode.Disposa
this.acceptPromise = new Promise(resolve => {
this.disposables.unshift(quickPick.onDidAccept(() => {
resolve(quickPick.selectedItems);
this.dispose();
}));
this.disposables.unshift(quickPick.onDidHide(() => {
this.dispose();
Expand Down

0 comments on commit af4be29

Please sign in to comment.