[Feature Request] Setting to disable ide_opened_file context on tab switch
Resolved 💬 3 comments Opened Apr 3, 2026 by Lolog9 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:
- It pollutes the conversation context with irrelevant file paths
- There is no way to disable it — no setting exists in the extension
- The user may be browsing files without wanting Claude to react to them
- 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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗