Skip to content

Commit 9c19fe9

Browse files
flotwigbpasero
authored andcommitted
Default 'Quick Switch Window' selection to be next window, closes microsoft#55166 (microsoft#55535)
1 parent 3a4edc8 commit 9c19fe9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/vs/workbench/electron-browser/actions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,11 @@ export abstract class BaseSwitchWindow extends Action {
616616
action: (!this.isQuickNavigate() && currentWindowId !== win.id) ? this.closeWindowAction : void 0
617617
} as IFilePickOpenEntry));
618618

619+
const autoFocusIndex = (picks.indexOf(picks.filter(pick => pick.payload === currentWindowId)[0]) + 1) % picks.length;
620+
619621
this.quickOpenService.pick(picks, {
620622
contextKey: 'inWindowsPicker',
621-
autoFocus: { autoFocusFirstEntry: true },
623+
autoFocus: { autoFocusIndex },
622624
placeHolder,
623625
quickNavigateConfiguration: this.isQuickNavigate() ? { keybindings: this.keybindingService.lookupKeybindings(this.id) } : void 0
624626
});

0 commit comments

Comments
 (0)