Skip to content

Lock editor group when opening integrated browser side-by-side#295838

Merged
jruales merged 3 commits intomainfrom
copilot/add-locked-group-to-integrated-browser
Feb 17, 2026
Merged

Lock editor group when opening integrated browser side-by-side#295838
jruales merged 3 commits intomainfrom
copilot/add-locked-group-to-integrated-browser

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

When opening Integrated Browser with openToSide: true, the editor group was not locked, causing newly opened editors to replace the browser if it was focused. This breaks parity with the previous Live Preview extension behavior.

Changes

Modified OpenIntegratedBrowserAction in browserViewActions.ts:

const editorPane = await editorService.openEditor({ resource }, group);

// Lock the group when opening to the side
if (options.openToSide && editorPane?.group) {
    editorPane.group.lock(true);
}

The group is now automatically locked when openToSide: true, preventing editors from opening in the browser's group when the browser is focused. Users can manually unlock via the UI if desired.

Original prompt

This section details on the original issue you should resolve

<issue_title>Integrated Browser + Live Preview: opened side-by-side window should have "Lock group"</issue_title>
<issue_description>In the old experience, the browser is opened on the side with a Locked group. In the new experience with Integrated Browser, it's not opened with a locked group.

The reason why a locked group is useful is so that newly opened editors don't open on the same group as the browser, even if the browser is focused.


Old experience -- note the Locked Group icon:

Image

New experience -- note no Locked Group icon:

Image</issue_description>

<agent_instructions>When someone calls command INTEGRATED_BROWSER_COMMAND with openToSide: true, the browser editor group that's opened to the side should have a locked group (similar to what's accomplished by 'workbench.action.lockGroup' command, but if there's a cleaner way to do it that would be best)</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: jruales <1588988+jruales@users.noreply.github.com>
Copilot AI changed the title [WIP] Add locked group feature to integrated browser side panel Lock editor group when opening integrated browser side-by-side Feb 17, 2026
Copilot AI requested a review from jruales February 17, 2026 20:03
@jruales jruales requested a review from kycutler February 17, 2026 21:49
@jruales jruales marked this pull request as ready for review February 17, 2026 21:50
Copilot AI review requested due to automatic review settings February 17, 2026 21:50
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 17, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores parity with the Live Preview extension by automatically locking the editor group when the Integrated Browser is opened side-by-side. This prevents newly opened editors from replacing the browser when it has focus.

Changes:

  • Modified OpenIntegratedBrowserAction to lock the editor group automatically when openToSide: true is specified

@jruales jruales enabled auto-merge (squash) February 17, 2026 22:00
@jruales jruales merged commit 08fc1e0 into main Feb 17, 2026
18 checks passed
@jruales jruales deleted the copilot/add-locked-group-to-integrated-browser branch February 17, 2026 22:18
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.

Integrated Browser + Live Preview: opened side-by-side window should have "Lock group"

3 participants