[BUG] claude-vscode.editor.openLast not found — Extension fails to activate on Windows (v2.1.136)

Resolved 💬 3 comments Opened May 8, 2026 by icervantesdev Closed May 9, 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?

Extension fails to activate on Windows with the following 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\ivanc\.vscode\extensions\anthropic.claude-code-2.1.136-win32-x64\extension.js:103:5579)

A Linux CI runner path is hardcoded in the Windows build (win32-x64), causing createRequire to fail. Commands are never registered, so clicking the Claude Code icon throws command
'claude-vscode.editor.openLast' not found.

Steps to reproduce:

  1. Install Claude Code v2.1.136 (win32-x64) in VS Code on Windows
  2. Open any workspace
  3. Click the Claude Code icon in the activity bar

Expected: Extension opens normally
Actual: command 'claude-vscode.editor.openLast' not found

Environment:

  • OS: Windows 11 Pro (10.0.22621)
  • VS Code: (your version)
  • Extension: anthropic.claude-code-2.1.136-win32-x64

Workaround: Install previous version via Extensions → gear icon → "Install Another Version"

What Should Happen?

Extension fails to activate on Windows with the following 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\ivanc\.vscode\extensions\anthropic.claude-code-2.1.136-win32-x64\extension.js:103:5579)

A Linux CI runner path is hardcoded in the Windows build (win32-x64), causing createRequire to fail. Commands are never registered, so clicking the Claude Code icon throws command
'claude-vscode.editor.openLast' not found.

Steps to reproduce:

  1. Install Claude Code v2.1.136 (win32-x64) in VS Code on Windows
  2. Open any workspace
  3. Click the Claude Code icon in the activity bar

Expected: Extension opens normally
Actual: command 'claude-vscode.editor.openLast' not found

Environment:

  • OS: Windows 11 Pro (10.0.22621)
  • VS Code: (your version)
  • Extension: anthropic.claude-code-2.1.136-win32-x64

Workaround: Install previous version via Extensions → gear icon → "Install Another Version"

Error Messages/Logs

Steps to Reproduce

Extension fails to activate on Windows with the following 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\ivanc\.vscode\extensions\anthropic.claude-code-2.1.136-win32-x64\extension.js:103:5579)

A Linux CI runner path is hardcoded in the Windows build (win32-x64), causing createRequire to fail. Commands are never registered, so clicking the Claude Code icon throws command
'claude-vscode.editor.openLast' not found.

Steps to reproduce:

  1. Install Claude Code v2.1.136 (win32-x64) in VS Code on Windows
  2. Open any workspace
  3. Click the Claude Code icon in the activity bar

Expected: Extension opens normally
Actual: command 'claude-vscode.editor.openLast' not found

Environment:

  • OS: Windows 11 Pro (10.0.22621)
  • VS Code: (your version)
  • Extension: anthropic.claude-code-2.1.136-win32-x64

Workaround: Install previous version via Extensions → gear icon → "Install Another Version"

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.135

Platform

Other

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

2.1.135

View original on GitHub ↗

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