[Feature Request] Setting to disable ide_opened_file context on tab switch

Status Closed — duplicate
Maintainer reply None cached
Activity 3 comments · opened Apr 3, 2026 · closed Apr 6, 2026

Problem

Every time a file tab is selected in VS Code, the extension sends an ide_opened_file context to the conversation. This is extremely disruptive during long coding sessions because:

  1. It pollutes the conversation context with irrelevant file paths
  2. There is no way to disable it — no setting exists in the extension
  3. The user may be browsing files without wanting Claude to react to them
  4. It consumes context window space

Proposed Solution

Add a setting claudeCode.sendOpenFileContext (default: true) that allows users to disable the automatic ide_opened_file injection when switching tabs.

Environment

  • VS Code extension v2.1.90
  • macOS Darwin 25.3.0
  • Claude Code CLI

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗