VS Code extension fails to activate on Windows: hardcoded Linux path in extension.js

Resolved 💬 3 comments Opened May 6, 2026 by HUANG20010522 Closed May 6, 2026

Extension version: 2.1.129 (win32-x64)
OS: Windows 10 Pro 10.0.19045
VS Code: System Installer

Error

Extension ^Gnthropic.claude-code fails to activate on startup with the following error:


2026-05-06 11:49:17.025 [error] Activating extension Anthropic.claude-code failed due to an error:
2026-05-06 11:49:17.025 [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 Object.<anonymous> (c:\Users\..\.vscode\extensions\anthropic.claude-code-2.1.129-win32-x64\extension.js:102:5407)

Root cause

A Linux CI build path ( ile:///home/runner/work/claude-cli-internal/...) is hardcoded in extension.js. This path is invalid on Windows, causing the extension to fail during activation.

Symptom

Clicking the Claude Code icon in the Activity Bar shows:

command 'claude-vscode.editor.openLast' not found

This is because the extension never activates, so no command handlers are registered.

Workaround

Using claude CLI directly in the VS Code integrated terminal works fine.

View original on GitHub ↗

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