mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-05 04:45:23 +01:00
This commit is contained in:
committed by
Benjamin Pasero
parent
3a4edc806a
commit
9c19fe9406
@@ -616,9 +616,11 @@ export abstract class BaseSwitchWindow extends Action {
|
||||
action: (!this.isQuickNavigate() && currentWindowId !== win.id) ? this.closeWindowAction : void 0
|
||||
} as IFilePickOpenEntry));
|
||||
|
||||
const autoFocusIndex = (picks.indexOf(picks.filter(pick => pick.payload === currentWindowId)[0]) + 1) % picks.length;
|
||||
|
||||
this.quickOpenService.pick(picks, {
|
||||
contextKey: 'inWindowsPicker',
|
||||
autoFocus: { autoFocusFirstEntry: true },
|
||||
autoFocus: { autoFocusIndex },
|
||||
placeHolder,
|
||||
quickNavigateConfiguration: this.isQuickNavigate() ? { keybindings: this.keybindingService.lookupKeybindings(this.id) } : void 0
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user