Skip to content

Commit 536960b

Browse files
authored
Original window regrabs focus when using QuickOpen to switch to other window (fix microsoft#203111) (microsoft#203676)
1 parent d5d51ba commit 536960b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/platform/quickinput/browser/quickInputController.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ export class QuickInputController extends Disposable {
183183
}));
184184
this._register(list.onLeave(() => {
185185
// Defer to avoid the input field reacting to the triggering key.
186+
// TODO@TylerLeonhardt https://github.com/microsoft/vscode/issues/203675
186187
setTimeout(() => {
188+
if (!this.controller) {
189+
return;
190+
}
187191
inputBox.setFocus();
188192
if (this.controller instanceof QuickPick && this.controller.canSelectMany) {
189193
list.clearFocus();

0 commit comments

Comments
 (0)