The /ide command cannot detect VS Code on Windows despite extension running
Environment
- OS: Windows
- VS Code: 1.108.2
- Claude Code CLI: 2.1.25
- Claude Code Extension: 2.1.25
Issue
/ide shows "No available IDEs detected" even though running from VS Code integrated terminal with the extension active.
Debugging performed
- Extension is active - Output log shows:
````
Claude code extension is now active?
MCP Server running on port 55912 (localhost only)
- Lock file exists at
~/.claude/ide/55912.lockwith correct content:
``json``
{"pid":27328,"workspaceFolders":["c:\Users\songym\cursor-projects"],"ideName":"Visual Studio Code","transport":"ws","runningInWindows":true,"authToken":"..."}
- Port is listening (verified with
netstat -ano | findstr "55912"):
```
TCP 127.0.0.1:55912 0.0.0.0:0 LISTENING 2756
Code.exe` (VS Code subprocess)
PID 2756 is
- Environment variables are set correctly:
````
TERM_PROGRAM=vscode
TERM_PROGRAM_VERSION=1.108.2
VSCODE_GIT_IPC_HANDLE=\.\pipe\vscode-git-8516e2bd89-sock
VSCODE_INJECTION=1
codecommand is in PATH
Expected behavior
/ide should detect the running VS Code instance and allow connection.
Actual behavior
/ide shows "No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and is running."
Additional context
- This started happening recently (was working before)
- Tried restarting VS Code multiple times
- Tried reloading VS Code window
- Removed stale lock files from
~/.claude/ide/
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗