claude-code - 💡(How to fix) Fix Add setting to disable auto-attaching IDE selection/active file by default (VS Code extension)

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

What

The VS Code extension automatically attaches the current editor selection and active file path to every prompt (the "eye" icon in the input box, shown as ⧉ Selected N lines from <file>). The eye can be toggled off, but the state is per-session only — it resets every session.

Request

Add a persistent setting (e.g. an extension setting like attachSelectionByDefault / shareIdeSelection, or a ~/.claude/settings.json key) to make the eye off by default, so the auto-attach doesn't have to be disabled manually each session.

Why

Some workflows don't want the active file silently included on every prompt — for context hygiene and to avoid unintentionally pulling unrelated open files into the conversation. A Read deny rule only covers specific known paths and doesn't change the default toggle behavior.

Environment

  • Claude Code VS Code extension
  • Platform: Linux (WSL2)

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