claude-code 2.1.129 win32-arm64: Extension fails to activate due to hardcoded Linux path in module

Resolved 💬 2 comments Opened May 6, 2026 by Spothumarthi-Cricut Closed May 6, 2026

Summary

The Claude Code VS Code extension version 2.1.129 for win32-arm64 fails to activate entirely, causing command 'claude-vscode.editor.openLast' not found errors when any extension command is invoked.

Root Cause

The extension was bundled with a hardcoded Linux CI path (file:///home/runner/work/claude-cli-internal/claude-cli-internal/build-agent-sdk/sdk.mjs) that is passed to Module.createRequire(). On Windows this path is invalid, causing a TypeError at module load time before any commands are registered.

Error from Extension Host Log

ExtensionService#_doActivateExtension Anthropic.claude-code, startup: false, activationEvent: 'onCommand:claude-vscode.editor.openLast'
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:1922:13)
  at Object.<anonymous> (C:\Users\<redacted>\.vscode-insiders\extensions\anthropic.claude-code-2.1.129-win32-arm64\extension.js:102:5407)

Environment

  • Extension version: 2.1.129-win32-arm64
  • VS Code version: 1.115.0-insider
  • OS: Windows 11 Pro (ARM64) 10.0.26100

Impact

Extension never activates — no Claude Code commands are available in VS Code Insiders on Windows ARM64.

Workaround

Downgrade to an older extension version via "Install Another Version..." in the Extensions panel.

View original on GitHub ↗

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