VS Code extension v2.1.55 fails to activate on Windows — hardcoded Linux path in build
Resolved 💬 3 comments Opened Feb 25, 2026 by prabukamal Closed Feb 25, 2026
Bug
Claude Code VS Code extension v2.1.55 crashes on activation on Windows with:
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'
The extension was built with a hardcoded Linux CI runner path (/home/runner/work/...) embedded in extension.js:45. On Windows, Module.createRequire() rejects this path since it's not a valid local file URL.
Environment
- OS: Windows 11 Enterprise 10.0.26100
- VS Code: 1.108.1 (x64)
- Extension: anthropic.claude-code v2.1.55 (win32-x64)
- Claude CLI: 2.1.55
Steps to Reproduce
- Install Claude Code extension v2.1.55 on Windows
- Open VS Code
- Extension fails to activate — all commands show "command not found"
Error Log (Extension Host)
ExtensionService#_doActivateExtension Anthropic.claude-code, startup: false, activationEvent: 'onStartupFinished'
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'
at Module.createRequire (node:internal/modules/cjs/loader:1915:13)
at Object.<anonymous> (...\anthropic.claude-code-2.1.55-win32-x64\extension.js:45:4848)
Workaround
Downgrading to v2.1.44 resolves the issue:
code --uninstall-extension anthropic.claude-code
code --install-extension anthropic.claude-code@2.1.44This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗