[BUG] Extension fails to activate on Windows - hardcoded Linux path in extension.js
Resolved 💬 5 comments Opened Feb 24, 2026 by ysingmie Closed Feb 24, 2026
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?
The Claude Code VS Code extension fails to activate on Windows. All extension commands (claude-vscode.editor.openLast, claude-vscode.sidebar.open, claude-vscode.editor.open) are not registered and throw "command not found" errors. The Extension Host log shows the extension fails to load due to a hardcoded Linux path inside extension.js.
What Should Happen?
The extension should activate successfully and all commands should be available in the Command Palette.
Error Messages/Logs
2026-02-24 14:57:03.374 [error] Activating extension Anthropic.claude-code failed due to an error:
2026-02-24 14:57:03.374 [error] TypeError: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received 'file:///home/runner/work/claude-cli-internal/claude-cli-internal/build-agent-sdk/sdk.mjs'
at Module.createRequire (node:internal/modules/cjs/loader:1915:13)
at Object.<anonymous> (c:\Users\ysingmie\.vscode\extensions\anthropic.claude-code-2.1.51-win32-x64\extension.js:45:4602)
Steps to Reproduce
- Install Claude Code extension v2.1.51 on Windows 10
- Open VS Code
- Try any Claude Code command from Command Palette (e.g. "Claude Code: Open in New Tab")
- Error "command not found" appears
- Check View > Output > Extension Host log to see activation failure
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
VS Code 1.109.5
Claude Code Version
2.1.51
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗