Skip to content

feat: Support switching to the main window.#306573

Open
matts1 wants to merge 1 commit intomicrosoft:mainfrom
matts1:switch-main
Open

feat: Support switching to the main window.#306573
matts1 wants to merge 1 commit intomicrosoft:mainfrom
matts1:switch-main

Conversation

@matts1
Copy link
Copy Markdown

@matts1 matts1 commented Mar 31, 2026

From an auxilary window, there is currently no way to switch back to the main window.

This particularly an issue when you have a floating terminal window, as there is no key binding that can easily take you back to the correct split of the main editor (there is no active editor group, so "focus active editor group" doesn't work).

To test the changes:

  1. Compile & open vscode
  2. control shift p -> new terminal window
  3. Create a split in the main window and focus the left
  4. (from the main window) control shift p -> Switch to main window should not appear
  5. (from the terminal window) control shift p -> switch to main window should switch the focus back to the left split of the main window
  6. Repeat the process with the right split

Fixes #306571

From an auxilary window, there is currently no way to switch back to the main window.

This is particularly an issue when you have a floating terminal window, as there is no key binding that can easily take you back to the correct split of the main editor (there is no active editor group, so "focus active editor group" doesn't work).
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/workbench/electron-browser/actions/windowActions.ts
  • src/vs/workbench/electron-browser/desktop.contribution.ts

@matts1
Copy link
Copy Markdown
Author

matts1 commented Mar 31, 2026

@microsoft-github-policy-service agree company="Google"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a mechanism to switch to the main window from auxilary windows

2 participants