Surface active editor file + selection content as context in Claude Desktop (parity with IDE extensions)
Problem
In the VS Code and JetBrains extensions, Claude receives the currently open file and the active selection as context automatically. In the Claude Desktop app, the built-in editor pane on the right exposes neither, so Claude has no idea what I'm looking at or which lines I've highlighted. I have to name the file and paste the relevant lines every time, which breaks the workflow I was used to in VS Code.
Request
Pass the active editor state to Claude as context in the Desktop app, matching the IDE-extension behavior:
- path of the file currently open in the editor pane
- the current selection range (line numbers) and the actual text content of the selected lines
- update it when I switch tabs or change the selection
Why it matters
The Desktop editor invites you to open a file, highlight a few lines, and then talk about "this" or "these lines", but Claude can see neither the file nor the highlighted content. Passing the selected text (not just the range) is the key part: it lets me point at code by highlighting it instead of copy-pasting. This would make the Desktop app a real IDE-parity experience.
Environment
Claude Desktop app (macOS), Claude Code.