claude-code - 💡(How to fix) Fix [FEATURE] Support multiple IDE selections in conversation context (ide_selection) [1 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#52717Fetched 2026-04-24 10:41:33
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Problem

The VS Code extension ide_selection tag only carries a single selection into the conversation. When a user selects code in multiple locations and sends a message, only the first (most recent) selection is included.

Expected Behavior

Allow multiple code selections to be referenced in a single conversation turn, either by:

  1. Supporting multiple <ide_selection> blocks in the conversation context
  2. Or including all active editor selections in a single block

Proposed Solution

Use Case

When asking Claude to refactor code that spans multiple files or locations, users currently have to paste each code snippet manually into the message body, which breaks the natural selection → ask workflow.

Alternatives Considered

Users can work around this by pasting code directly into the message, but this requires extra steps and removes the visual context of the IDE selection.

Alternative Solutions

No response

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Modify the VS Code extension to support multiple <ide_selection> blocks or include all active editor selections in a single block to allow multiple code selections in a conversation.

Guidance

  • Review the current implementation of the ide_selection tag to understand how it handles multiple selections.
  • Consider modifying the extension to support multiple <ide_selection> blocks in the conversation context.
  • Alternatively, explore including all active editor selections in a single block to simplify the implementation.
  • Verify the proposed solution by testing it with multiple code selections and ensuring all selections are included in the conversation.

Example

No code snippet is provided as the issue lacks specific implementation details.

Notes

The solution may require changes to the VS Code extension's code and potentially the conversation context handling.

Recommendation

Apply workaround: Modify the VS Code extension to support multiple code selections, as this is a critical feature for the user's workflow.

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 [FEATURE] Support multiple IDE selections in conversation context (ide_selection) [1 comments, 2 participants]