[BUG] File edit diff tab no longer opens after VSCode update to 1.111
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?
After updating VSCode from version 1.105.0 to 1.111.0, the Claude Code extension no longer opens a full diff tab in the editor when Claude makes file edits. In VSCode 1.105.0, every file modification triggered a diff view in a new editor tab, allowing the user to review changes before accepting them. This behavior is broken after the VSCode update.
The Claude Code extension version is 2.1.74 (unchanged).
Downgrade also broken
Attempting to downgrade VSCode back to 1.105.0 causes the Claude Code extension to fail to load entirely.
What Should Happen?
File edits should open a full diff tab in the VSCode editor, as they did in VSCode 1.105.0.
Error Messages/Logs
Steps to Reproduce
Have VSCode 1.111.0 with Claude Code extension 2.1.74
Ask Claude to make any edit to a file
Observe that no diff tab opens in the editor
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.74
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
OS: Linux (Ubuntu, kernel 6.8.0)
VSCode: 1.111.0 (worked in 1.105.0)
Claude Code extension: 2.1.74
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Here's a patch script that Claude helped me create to fix the diff preview tab not opening when the file contains CRLFs and a multi-line edit is done.
This script applies two patches to the extension's extension.js file, to convert all CRLFs to LFs before attempting to show the diff tab. This doesn't just force the diff tab to be shown, it normalizes both the existing and new code to use only LFs before the comparison is made for the edit, which allows the diff tab to be shown without an error.
Instructions are included for patching both the Windows extension for editing local files, and the Linux-based extension that's used when editing files via SSH. The script auto-detects the location of the newest Claude Code extension and then backs up the extension.js file before applying the two patches to it. All that's needed after running the script is to reload VS Code, and then the diff preview tab should start working as normal again. See the readme file in the project below for the full instructions.
Give it a try and let us know how it works for you. It finally fixed the problem on both Windows and SSH for me.
https://github.com/russellgilbert/claude-code-diff-fix
Having the same issue in VS Code v1.113.0 and Claude Code extension v2.1.88. Inline diffs working fine in two different work spaces, then stopped working in one of the work spaces with no discernible changes that would effect it. Will work from the built in vscode chat window, but not the tab opened by the claude extension. The built in chat window is using Claude Haiku 4.5 and the claude extension is using Claude Sonnet 4.6.
@russellgilbert mine is not a CRLF issue.
still open.