Add option to disable IDE editor-context injection (VSCode)

Resolved 💬 4 comments Opened May 19, 2026 by Omni-Wild Closed May 23, 2026

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!

View original on GitHub ↗

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