claude-code - 💡(How to fix) Fix VS Code extension — expose open tab list for multi-file context awareness

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…
RAW_BUFFERClick to expand / collapse

Problem

<ide_opened_file> only reports the currently focused file in the IDE, not all open tabs. When a user works across 2-3 related files, Claude Code has no visibility into adjacent open tabs and cannot proactively infer cross-file context.

The user must manually switch to each file (triggering <ide_opened_file> updates) before Claude Code becomes aware of those files. This adds friction to cross-file collaboration sessions.

Proposed Solution

Expose the full list of currently open editor tabs in the Claude Code context. This could be:

  1. A new <open_tabs> section (preferred) listing all visible tabs, similar to how <project_layout> lists files
  2. Or extend <ide_opened_file> to include metadata about other open tabs

Each entry could be minimal — just file path and maybe whether it's dirty or pinned — no need for full file contents.

Use Case

The user has Type.ts, NamedEntity.ts, ClassDefinition.ts, and API_CORE.md open simultaneously. They ask a question that spans all four. Claude Code should see the open-tab list and proactively relate them instead of waiting for the user to switch focus one-by-one.

Implementation Note

Similar data is already available to the extension via VS Code's vscode.window.tabGroups API.

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