claude-code - 💡(How to fix) Fix [BUG] Claude Code's 'replace all' action in VS Code is misleadingly indistinguishable from a single edit [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46247Fetched 2026-04-11 06:25:22
View on GitHub
Comments
2
Participants
2
Timeline
8
Reactions
0
Timeline (top)
labeled ×5commented ×2cross-referenced ×1

Error Message

Error Messages/Logs

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.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

extent analysis

TL;DR

Displaying the number of replacements made and total lines edited in both the main window and drill-in diff view can help clarify the extent of 'replace all' actions in Claude Code.

Guidance

  • Modify the Claude Code extension to display the total number of replacements made and lines edited in both views.
  • Add a warning in the views when the displayed edit is representative and not the full edit.
  • Consider enhancing the diff view to show multiple edits or provide a way to view all changes made by the 'replace all' action.
  • Review the extension's UI to ensure it clearly indicates when multiple-line edits have been performed.

Example

No specific code example can be provided without more details on the extension's implementation, but the display of replacement counts and warnings could be achieved through UI updates.

Notes

The exact implementation details are not provided, so the guidance is focused on the desired outcome rather than specific code changes. The feasibility of these suggestions may depend on the internal workings of the Claude Code extension and the Anthropic API.

Recommendation

Apply a workaround by modifying the extension to display clear indicators of 'replace all' actions, as this will provide immediate feedback to users about the extent of changes made.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Claude Code's 'replace all' action in VS Code is misleadingly indistinguishable from a single edit [2 comments, 2 participants]