The /ide command cannot detect VS Code on Windows despite extension running

Resolved 💬 7 comments Opened Jan 30, 2026 by elfenlieds7 Closed Mar 1, 2026

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

  1. Extension is active - Output log shows:

``
Claude code extension is now active?
MCP Server running on port 55912 (localhost only)
``

  1. Lock file exists at ~/.claude/ide/55912.lock with correct content:

``json
{"pid":27328,"workspaceFolders":["c:\Users\songym\cursor-projects"],"ideName":"Visual Studio Code","transport":"ws","runningInWindows":true,"authToken":"..."}
``

  1. Port is listening (verified with netstat -ano | findstr "55912"):

``
TCP 127.0.0.1:55912 0.0.0.0:0 LISTENING 2756
`
PID 2756 is
Code.exe` (VS Code subprocess)

  1. 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
``

  1. code command 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/

View original on GitHub ↗

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