[BUG] [VSCode Extension] File edits automatically switch active editor tab to edited file
Resolved 💬 3 comments Opened Apr 13, 2026 by fyre-code Closed Apr 17, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When Claude Code edits a file (via the Edit or Write tool), VS Code
automatically switches the active editor tab to the file being edited,
interrupting the user's current view.
What Should Happen?
The active editor tab should remain on whatever file the user has open.
Edits to other files should happen silently in the background.
Error Messages/Logs
Steps to Reproduce
- Open any file in VS Code (e.g. index.html)
- Ask Claude Code to make a change to a different file (e.g. styles.css or main.js)
- The active tab switches to the edited file
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Exit code 127 /usr/bin/bash: line 1: claude: command not found [rerun: b1]
Platform
Other
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗