[BUG] VSCode Extension no longer has file/selection context

Resolved 💬 2 comments Opened Oct 15, 2025 by bdmayes-ps Closed Oct 15, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

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.

<img width="1098" height="849" alt="Image" src="https://github.com/user-attachments/assets/b143767c-f1e6-4743-aaa3-314bfc0fc1a1" />

View original on GitHub ↗

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