claude-code - 💡(How to fix) Fix Add option to disable IDE editor-context injection (VSCode) [2 comments, 2 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#60590Fetched 2026-05-20 03:54:35
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2

Root Cause

I keep a .txt file open in VSCode as a scratchpad to draft prompts before sending. Because the Claude Code VSCode extension auto-injects the open editor's content into context, it picks up the scratchpad and gets confused with my actual prompt — pretty annoying when it happens mid-conversation.

RAW_BUFFERClick to expand / collapse

I keep a .txt file open in VSCode as a scratchpad to draft prompts before sending. Because the Claude Code VSCode extension auto-injects the open editor's content into context, it picks up the scratchpad and gets confused with my actual prompt — pretty annoying when it happens mid-conversation.

Would love a setting (ideally a toggle in the extension menu) to disable this auto-injection entirely.

Note: permissions.deny on the file path doesn't help — the injection happens at the extension layer before any tool fires, so it bypasses the permissions system.

Thanks!

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 Add option to disable IDE editor-context injection (VSCode) [2 comments, 2 participants]