claude-code - 💡(How to fix) Fix [BUG] Open files in VS Code UI don't refresh when the Claude Code plugin edits the files in a Dev Container. [1 comments, 1 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#46066Fetched 2026-04-11 06:29:52
View on GitHub
Comments
1
Participants
1
Timeline
6
Reactions
0
Participants
Timeline (top)
labeled ×5commented ×1

Error Message

Error Messages/Logs

Root Cause

When Claude Code is running in a Dev Container from the Claude Code plugin and it makes edits to files, but the file is open in a VS Code editor window, the window is not refreshed. The workaround, closing and opening all edited files, is prohibitive to use. This is a plugin bug because Claude Code when used from CoPilot always refreshes and the proposed changes are always visible.

Fix Action

Fix / Workaround

When Claude Code is running in a Dev Container from the Claude Code plugin and it makes edits to files, but the file is open in a VS Code editor window, the window is not refreshed. The workaround, closing and opening all edited files, is prohibitive to use. This is a plugin bug because Claude Code when used from CoPilot always refreshes and the proposed changes are always visible.

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?

When Claude Code is running in a Dev Container from the Claude Code plugin and it makes edits to files, but the file is open in a VS Code editor window, the window is not refreshed. The workaround, closing and opening all edited files, is prohibitive to use. This is a plugin bug because Claude Code when used from CoPilot always refreshes and the proposed changes are always visible.

What Should Happen?

When Claude Code edits a file, even in a dev container, the edits should appear in the editor window.

Error Messages/Logs

Steps to Reproduce

  1. Use Claude Code from a plugin installed in a VS Code Dev Container.
  2. Notice editor doesn't refresh when Claude edits the underlying code.
  3. Sometimes diffs appear in the editor window, other times not.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude Code Opus Version 6

Platform

Other

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

No response

extent analysis

TL;DR

The issue can likely be mitigated by exploring the differences in how Claude Code interacts with VS Code when used from the CoPilot versus the plugin in a Dev Container, focusing on file refresh mechanisms.

Guidance

  • Investigate the file system watching and refresh mechanisms used by the Claude Code plugin in the Dev Container to understand why edited files are not being updated in the VS Code editor window.
  • Compare the implementation of Claude Code when used from CoPilot, which successfully refreshes the editor window, to identify potential differences or workarounds.
  • Consider implementing a manual refresh or reload command in the plugin for when edits are made, as a temporary workaround until the root cause is addressed.
  • Review the documentation and settings for the Dev Container and VS Code plugin to ensure that file watching and auto-refresh are properly configured.

Example

No specific code example can be provided without further details on the plugin's implementation, but exploring the use of VS Code's API for refreshing or reloading open files could be a starting point.

Notes

The lack of error messages or logs limits the ability to pinpoint the exact cause, suggesting that the issue might be related to the interaction between the plugin, Dev Container, and VS Code rather than a straightforward bug in the Claude Code Opus Version 6 itself.

Recommendation

Apply a workaround, such as manually refreshing the editor window after edits or exploring a custom refresh command, until the underlying issue with the plugin's interaction with VS Code in a Dev Container can be fully understood and addressed.

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] Open files in VS Code UI don't refresh when the Claude Code plugin edits the files in a Dev Container. [1 comments, 1 participants]