[BUG] VSCode extension: new file (Write) suggestions are not expandable to preview contents
What's Wrong?
When Claude suggests creating a new file (via the Write tool), the suggestion block in the VS Code extension UI cannot be expanded to preview the full proposed file contents before approving or denying the action. The block shows the file path and action type but is not expandable.
What Should Happen?
New file (Write) suggestions should be expandable to show the full proposed file contents — consistent with how edit suggestions (Edit tool) show a collapsible diff view that lets you review changes before accepting.
Steps to Reproduce
- Open a project in VS Code with the Claude Code extension active (native extension, not terminal).
- Ask Claude to create a new file (e.g. "create a Dockerfile in this directory").
- Observe the permission/suggestion prompt that appears in the UI.
- Notice there is no way to expand or preview the proposed file contents before approving or denying.
Error Messages/Logs
No error messages — the UI simply does not offer an expand/preview option for new file writes.
Claude Code Version
2.1.159 (Claude Code) — VS Code extension version: 2.1.181
Platform
Anthropic API
Operating System
Other Linux (Manjaro, kernel 6.12.91-1-MANJARO)
Terminal/Shell
VS Code integrated terminal (native Claude Code extension)
Is this a regression?
I don't know — unknown whether this ever worked.
Additional Information
Edit suggestions for existing files show a collapsible diff, which is very useful for reviewing changes before accepting. The same affordance for new file writes would bring parity and allow informed review before a file is created on disk.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗