[VS Code Extension] Support IDE selection context for Markdown (.md) files
Resolved 💬 2 comments Opened Mar 22, 2026 by donghee0930 Closed Apr 20, 2026
Feature Request
Description
The VS Code extension currently passes selected text context (ide_selection) only from source code files. Selections made in Markdown (.md) files are not recognized or passed to the conversation context.
Current Behavior
- Selecting text in
.cs,.ts,.js, etc. → selection is passed to Claude aside_selectioncontext - Selecting text in
.mdfiles → selection is not passed; Claude does not see the highlighted content
Expected Behavior
Selections in .md files should also be passed as ide_selection context, the same way source code selections are.
Use Case
Many projects rely heavily on Markdown files for architecture docs, design specs, and project instructions (e.g., CLAUDE.md). Being able to select a specific section and ask Claude about it — just like with code — would be very useful.
Workaround
- Manually copy-paste the relevant section into the chat
- Use
@filename.mdto attach the entire file (but this includes unnecessary content)
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗