[BUG] Claude Code's 'replace all' action in VS Code is misleadingly indistinguishable from a single edit
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?
In a Claude Code (extension) session in VS Code, Claude Code performed a 'replace all' action as part of a response to a refactoring prompt:
Main session window:
<img width="1046" height="133" alt="Image" src="https://github.com/user-attachments/assets/a53f791a-2901-4502-b85f-e74a9f39fcc9" />
Drill-in edit diff view:
<img width="1242" height="155" alt="Image" src="https://github.com/user-attachments/assets/efddf1f7-b391-4c15-a344-0438a4d59b1a" />
In neither the main window nor the diff view is there any indication that more than a single replacement was made or that more than a single-line edit was performed. Not even the number of lines edited is shown.
This is tremendously misleading and dangerous: a wide-ranging 'replace all' looks to the user like a benign single-line edit.
What Should Happen?
It should be conspicuously clear in both views (main window and drill-in diff view) that a 'replace all' action has taken place and that the view displayed is a representative edit, not the full edit.
The number of replacements made and the total number of lines edited should be clearly and conspicuously displayed in both views. If the view is representative only, and does not comprise the full edit, a warning should be displayed to that effect.
Error Messages/Logs
Steps to Reproduce
In a Claude Code (extension) session window in VS Code, issue a prompt similar to the following:
Please change the error message "A filing system error occurred" to "A file system error occurred during export", and extract to a class constant, if the message is identical in both places.
Given appropriate code with a duplicated "magic string" for extraction, Claude Code should then perform a 'replace all' action on the string. However, the subsequent display may show only a single-line edit, with no suggestion that multiple edits were performed.
Note that this may not be directly reproducible.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.100
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗