[BUG] PhpStorm Integration - Code Selection Detection Not Working
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?
Environment:
- OS: Linux (WSL2)
- PhpStorm version: [Please fill in your version]
- Claude Code CLI version: [Please fill in if known]
Issue:
The PhpStorm Claude integration successfully launches Claude Code CLI in a terminal when clicking the Claude icon, but code selection detection is not working.
When highlighting/selecting code in the PhpStorm editor and interacting with Claude, the selected code is not automatically passed to Claude.
Steps to Reproduce:
Expected Behavior:
Claude should automatically detect and receive the selected code from PhpStorm editor.
Actual Behavior:
Claude Code CLI launches but has no visibility into selected code in PhpStorm. User must manually copy/paste code or provide file paths.
Additional Context:
- Terminal integration works (CLI launches successfully)
- PhpStorm button becomes grey/inactive after launching (may be expected behavior)
- User received initial toast message about Claude not starting, but CLI did launch
What Should Happen?
Claude should automatically detect and receive the selected code from PhpStorm editor.
Error Messages/Logs
Steps to Reproduce
- Install Claude Code PhpStorm plugin
- Select/highlight code in PhpStorm editor
- Click Claude icon in PhpStorm
- Claude Code CLI launches in terminal successfully
- Ask Claude to explain the selected code
- Claude responds that no code was provided/visible
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Version 1.0.107
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗