Change:
Type: <bBug</bFirst of all, thank you for adding floating editor windows! Super useful feature that has already improved my productivity using VS code. I'm experiencing a weird issue where I am unable to navigate to the first editor group (located in my original window) from a newly opened window. I am able to navigate to any other editor group, but just not the first one. Steps to repro: Open vs code window with two editor groups (this is the "original window") Open new vscode window From the new window, press ctrl + 1 () to try to go to the first editor group in the original window Observe that nothing happens (expected to change focus to first editor group in the original window) From the new window, press ctrl + 2 () and observe that you can change focus to the second editor group as expected Current workaround if I want to change focus to the first editor group from the new window is I do ctrl + 2 to go to the second editor group, and then I can press ctrl + 1 to focus on the first editor group. If I'm in the original window I have no issue switching between the first and any other editor group in that window VS Code version: Code - Insiders 1.85.0-insider (, 2023-11-17T10:49:40.914Z) OS version: Windows_NT x64 10.0. Modes: Remote OS version: Linux x64 5.15.0-1026-aws <details<summaryExtensions (13)</summaryExtensionVersion ------ remote-containers0.324.0 remote-ssh0.107.0 remote-ssh-edit0.86.0 remote-wsl0.81.8 vscode-remote-extensionpack0.24.0 remote-explorer0.4.1 remote-server1.5.0 vim1.27.0 copilot1.137.556 copilot-chat0.11. autopep82023.9. python2023.20.0 vscode-pylance2023.11.10 </details<details<summaryA/B Experiments</summary</details<!-- generated by issue reporter --
Thanks, good catch. Fixing this case is relatively easy, but there are other navigational commands across editor groups that will need special care for when multiple windows are opened:

Discussion:
*--------------------------------------------------------------------------------------------*/ import { localize } from 'vs/nls'; <del> import { EditorGroupLayout, GroupDirection, GroupOrientation, GroupsArrangement, GroupsOrder, IAuxiliaryEditorPart, IEditorDropTargetDelegate, IEditorGroupsService, IEditorSideGroup, IFindGroupScope, IMergeGroupOptions } from 'vs/workbench/services/editor/common/editorGroupsService'; </del> <ins> import { EditorGroupLayout, GroupDirection, GroupLocation, GroupOrientation, GroupsArrangement, GroupsOrder, IAuxiliaryEditorPart, IEditorDropTargetDelegate, IEditorGroupsService, IEditorSideGroup, IFindGroupScope, IMergeGroupOptions } from 'vs/workbench/services/editor/common/editorGroupsService'; </ins> import { Event, Emitter } from 'vs/base/common/event'; import { getActiveDocument } from 'vs/base/browser/dom'; import { Disposable, DisposableStore, IDisposable, toDisposable } from 'vs/base/common/lifecycle';

} findGroup(scope: IFindGroupScope, source?: IEditorGroupView | GroupIdentifier, wrap?: boolean): IEditorGroupView | undefined { <ins> if (scope.location === GroupLocation.FIRST || scope.location === GroupLocation.LAST) { // TODO implement support for all scopes with multiple editor parts // https://github.com/microsoft/vscode/issues/198651 return scope.location === GroupLocation.FIRST ? this.groups[0] : this.groups[this.groups.length - 1]; } </ins> if (source) { return this.getPart(source).findGroup(scope, source, wrap); }