Default 'Quick Switch Window' selection to be next window, closes #55166 (#55535)

This commit is contained in:
Zach Bloomquist
2018-08-07 04:42:23 -04:00
committed by Benjamin Pasero
parent 3a4edc806a
commit 9c19fe9406
+3 -1
View File
@@ -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
});