[Bug] VS Code extension automatically locks editor group, causing unwanted splits
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report
- [x] I am using the latest version of Claude Code
What's Wrong?
When using the Claude Code VS Code extension with claudeCode.preferredLocation: "panel", the extension automatically locks the editor group. This causes all subsequently opened files to create a new split instead of opening as a new tab in the same group.
The lock icon appears on the editor group, and VS Code's "Open to the Side" behavior is triggered for every new file.
What Should Happen?
Opening files should add them as new tabs in the existing editor group, without creating splits. The editor group should not be locked automatically.
Steps to Reproduce
- Install Claude Code extension
- Set
"claudeCode.preferredLocation": "panel"in settings.json (or leave default) - Open VS Code with any project
- Open a file from the explorer (single click or double click)
- Open a second file from the explorer
Result: The second file opens in a new split. A lock icon is visible on the editor group.
Workaround
Manually unlock the editor group via Cmd+Shift+P → "View: Unlock Editor Group". However, this needs to be done every time VS Code is restarted or a new window is opened.
Claude Model
Sonnet (default)
Is this a regression?
Unknown
Claude Code Version
Latest
Platform
Anthropic API
Operating System
macOS 15 (Darwin 25.2.0)
Terminal/Shell
zsh
Additional Information
Disabling the Claude Code extension resolves the issue - editor groups are no longer locked automatically.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗