[BUG] Extension fails to activate on Windows - hardcoded Linux path in bundle
Resolved 💬 3 comments Opened May 8, 2026 by gneuman Closed May 9, 2026
What's Wrong?
Version: 2.1.136 (win32-x64)
OS: Windows 11
The extension fails to activate with this error in the Developer Console:
Activating extension 'Anthropic.claude-code' failed: 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'
The bundle contains a hardcoded Linux CI path that doesn't resolve on Windows. The extension shows no commands and doesn't appear in the Output channels.
What Should Happen?
The extension should activate normally on Windows and register all its commands (e.g. claude-vscode.editor.openLast).
Steps to Reproduce
- Install VS Code on Windows 11
- Install extension
anthropic.claude-codeversion 2.1.136 - Open Developer Tools (Ctrl+Shift+P → "Developer: Toggle Developer Tools")
- Check the Console tab — extension activation error appears immediately
Error Messages/Logs
mainThreadExtensionService.ts:108 Activating extension 'Anthropic.claude-code' failed: 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'.
Environment
- Claude Code CLI: 2.1.136
- Platform: VS Code extension (win32-x64)
- OS: Windows 11 Pro
- Shell: PowerShell / Git Bash
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗