Skip to content

Commit

Permalink
if no selected items, return to accessibility help dialog (microsoft#…
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored and mustard-mh committed May 22, 2024
1 parent d1499ae commit f7990e6
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ export class AccessibleView extends Disposable {

configureKeybindings(): void {
const items = this._currentProvider?.options?.configureKeybindingItems;
const provider = this._currentProvider;
if (!items) {
return;
}
Expand All @@ -380,7 +381,12 @@ export class AccessibleView extends Disposable {
}
quickPick.dispose();
});
quickPick.onDidHide(() => quickPick.dispose());
quickPick.onDidHide(() => {
if (!quickPick.selectedItems.length && provider) {
this.show(provider);
}
quickPick.dispose();
});
}

private _convertTokensToSymbols(tokens: marked.TokensList, symbols: IAccessibleViewSymbol[]): void {
Expand Down

0 comments on commit f7990e6

Please sign in to comment.