Preflight Checklist
What's Wrong?
Title:
IDE selection context not being passed to Claude in VSCode extension
Description:
When selecting lines of code in the VSCode editor, the selection context is not being passed to Claude Code. Claude responds that it cannot see any ide_selection tags in the conversation context.
Actual Behavior:
Claude does not receive any IDE selection context and cannot see what lines are selected.
What Should Happen?
Claude should receive the selected code with ide_selection tags in the conversation context and be able to reference the selected lines.
Error Messages/Logs
Steps to Reproduce
- Open a file in VSCode
- Open the Claude code extension
-Select specific lines of code
- Ask Claude "Can you see which lines I have selected?"
- Claude responds that no selection context is visible
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.0.15
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Environment:
OS: macOS (Darwin 24.5.0)
VSCode Version: 1.105.0
Claude Code Extension: v2.0.15
Architecture: arm64
Additional Context:
- Working in a git repository
- Opening a terminal, launching claude code and then typing
/ide works correctly, and knows precisely which lines are selected.

Preflight Checklist
What's Wrong?
Title:
IDE selection context not being passed to Claude in VSCode extension
Description:
When selecting lines of code in the VSCode editor, the selection context is not being passed to Claude Code. Claude responds that it cannot see any ide_selection tags in the conversation context.
Actual Behavior:
Claude does not receive any IDE selection context and cannot see what lines are selected.
What Should Happen?
Claude should receive the selected code with ide_selection tags in the conversation context and be able to reference the selected lines.
Error Messages/Logs
Steps to Reproduce
-Select specific lines of code
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.0.15
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Environment:
OS: macOS (Darwin 24.5.0)
VSCode Version: 1.105.0
Claude Code Extension: v2.0.15
Architecture: arm64
Additional Context:
/ideworks correctly, and knows precisely which lines are selected.