[BUG] Title: VS Code extension fails to activate on Windows - hardcoded Linux path in extension.js
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?
Description:
Extension version: 2.1.129
Platform: Windows 11
Error:
Activating extension Anthropic.claude-code failed due to an 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'
What Should Happen?
Problem:
The extension.js contains a hardcoded Linux path from the CI/CD build environment (/home/runner/work/...) that doesn't exist on Windows systems. This prevents the extension from activating.
Workaround:
Use claude CLI directly in terminal
Or use Claude Code in terminal mode instead of native UI
Error Messages/Logs
command 'claude-vscode.editor.openLast' not found
Steps to Reproduce
click on extention
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.129 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗