[BUG] VS Code extension fails to activate on Windows - invalid file URL path

Resolved 💬 4 comments Opened May 6, 2026 by JosephineEA Closed May 6, 2026

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?

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'.

What Should Happen?

Expected behavior
Extension activates normally.

Error Messages/Logs

**Actual behavior**
  Extension fails to activate. The bundled sdk.mjs references a Linux CI build path that cannot be resolved on Windows.

Steps to Reproduce

  1. Install Claude Code extension on Windows
  2. Open VS Code
  3. Extension fails to activate automatically

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.121

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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