We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b743062 commit fdb4d42Copy full SHA for fdb4d42
extensions/ql-vscode/src/view/common/SuggestBox/SuggestBox.tsx
@@ -243,6 +243,11 @@ export const SuggestBox = <
243
context={context}
244
initialFocus={-1}
245
visuallyHiddenDismiss
246
+ // The default for returnFocus is true, but this doesn't work when opening
247
+ // the command palette in a VS Code webview. The focus is returned to the
248
+ // input element, but this closes the command palette immediately after opening
249
+ // it. By setting returnFocus to false, the focus is not immediately given to
250
+ // the input element, so the command palette stays open.
251
returnFocus={false}
252
>
253
<ListContainer
0 commit comments