[BUG] VSCode extension: current file context pill not shown when editor and Claude Code chat are in the same window
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?
When the Claude Code chat tab and a file editor tab are in the same VSCode window (whether in a split pane or the same tab group), the current file context pill does not appear at the bottom of the chat input.
The file context pill only appears correctly when the Claude Code chat is opened in a separate VSCode window from the editor.
What Should Happen?
The current file context pill should appear at the bottom of the Claude Code chat input regardless of whether the Claude Code tab and the editor file tab are in the same window or in separate windows.
Error Messages/Logs
Steps to Reproduce
- Open any file in VSCode
- Open the Claude Code chat panel in the same window (split pane or same tab group)
- Observe: no file context pill is shown at the bottom of the chat input
- Drag the Claude Code chat tab out into a new separate VSCode window
- Observe: the file context pill now appears correctly at the bottom of the chat input
Result: File context only works when Claude Code and the editor are in separate windows.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.114 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗