[FEATURE] Reveal file in explorer when showing edit diff
Status Open
Maintainer reply None cached
Activity 0 comments · opened Jul 22, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
When Claude Code proposes an edit and opens the side-by-side diff view, the file is not revealed/selected in the VS Code explorer sidebar. The diff tab shows [Claude Code] filename indicating it's a virtual document, which bypasses VS Code's explorer.autoReveal setting.
Current behavior:
- Claude proposes an edit → diff view opens in editor
- Explorer sidebar does not change — the file's location in the tree is not shown
Proposed Solution
Desired behavior:
- Claude proposes an edit → diff view opens in editor
- The target file is also revealed/selected in the explorer sidebar, so you can see where it lives in the project structure
Why this is useful:
- Provides spatial context for the file being edited, especially in unfamiliar codebases
- Matches the UX of normal file opens in VS Code
- Helps when reviewing multiple edits across different directories
Suggested implementation:
When showing the diff, call something like:
vscode.commands.executeCommand('revealInExplorer', targetFileUri);
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
Developer tools/SDK
Use Case Example
_No response_
Additional Context
_No response_