[BUG] VSCode extension: current file context pill not shown when editor and Claude Code chat are in the same window

Resolved 💬 1 comment Opened Apr 23, 2026 by Roybaby Closed May 27, 2026

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

  1. Open any file in VSCode
  2. Open the Claude Code chat panel in the same window (split pane or same tab group)
  3. Observe: no file context pill is shown at the bottom of the chat input
  4. Drag the Claude Code chat tab out into a new separate VSCode window
  5. 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_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗