claude-code - 💡(How to fix) Fix [BUG] VSCode extension: current file context pill not shown when editor and Claude Code chat are in the same window [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#52264Fetched 2026-04-24 06:11:47
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

Error Messages/Logs

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 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

extent analysis

TL;DR

The issue can be worked around by opening the Claude Code chat panel in a separate VSCode window from the editor file tab.

Guidance

  • Verify that the issue is specific to the Claude Code version 2.1.114 and the Anthropic API platform.
  • Try resetting the VSCode window layout to its default settings to see if it resolves the issue.
  • Investigate if there are any known issues or limitations with the Claude Code chat panel when used in the same window as the editor file tab.
  • Check the VSCode extension settings for Claude Code to see if there are any configuration options that can be adjusted to enable the file context pill in the same window.

Example

No code snippet is provided as the issue seems to be related to the VSCode extension configuration or the Anthropic API platform.

Notes

The issue may be specific to the Windows operating system or the VS Code integrated terminal, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Open the Claude Code chat panel in a separate VSCode window from the editor file tab, as this has been confirmed to resolve the issue.

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] VSCode extension: current file context pill not shown when editor and Claude Code chat are in the same window [1 participants]