[BUG] Getting error command 'claude-vscode.editor.openLast' not found

Status Fixed / completed
Reported on v2.1.49
Maintainer reply None cached
Activity 13 comments · opened Feb 24, 2026 · closed Feb 24, 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?

I not able to open claude terminal in Visual Studio Code
I on Windows platform
The vendor/claude-code.vsix file is missing from the npm package
Getting error command 'claude-vscode.editor.openLast' not found
I have tried from 2.1.49 - 2.1.51, all having same issue. Even with reinstall the claude extension from marketplace also same

What Should Happen?

When click for the claude small icon should pop up a claude terminal

Error Messages/Logs

claude-vscode.editor.openLast

Steps to Reproduce

  1. Click the top right claude icon
  2. error show claude-vscode.editor.openLast
  3. try reinstall also same

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

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

13 Comments

alonsim · 6 months ago

Go back to version 2.1.49

kylesantiago · 6 months ago

try downgrading your claude extension to version 2.1.49

github-actions[bot] · 6 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/28060
  2. https://github.com/anthropics/claude-code/issues/28076
  3. https://github.com/anthropics/claude-code/issues/28081

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

jackmisbach · 6 months ago

It's fixed already in 2.1.52

tech2xg-alt · 6 months ago

same error is coming

weichun99 · 6 months ago
Go back to version 2.1.49

i have tried with this version also, having same issue, i try to check from appdata it showing my file is 0 bytes
the version i try 2.1.49 - 51 all same result

AlbertZyc · 6 months ago

2.1.52 The issue has not been fixed.

alonsim · 6 months ago
> Go back to version 2.1.49 i have tried with this version also, having same issue, i try to check from appdata it showing my file is 0 bytes the version i try 2.1.49 - 51 all same result

Same issue here on Windows. Version 2.1.51 fails to activate with:

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

Fix: downgrade to 2.1.49

code --install-extension anthropic.claude-code@2.1.49 --force

Then right-click the extension → Disable Auto Update so it doesn't update back to the broken version.

alonsim · 6 months ago
> > Go back to version 2.1.49 > > > i have tried with this version also, having same issue, i try to check from appdata it showing my file is 0 bytes the version i try 2.1.49 - 51 all same result Same issue here on Windows. Version 2.1.51 fails to activate with: 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'. Fix: downgrade to 2.1.49 code --install-extension anthropic.claude-code@2.1.49 --force Then right-click the extension → Disable Auto Update so it doesn't update back to the broken version.

also reload your vs -> Ctrl+Shift+P -> Developer: Reload Window

weichun99 · 6 months ago
It's fixed already in 2.1.52

yes for my case, this able to fix

weichun99 · 6 months ago
> > > Go back to version 2.1.49 > > > > > > i have tried with this version also, having same issue, i try to check from appdata it showing my file is 0 bytes the version i try 2.1.49 - 51 all same result > > > Same issue here on Windows. Version 2.1.51 fails to activate with: > 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'. > Fix: downgrade to 2.1.49 > code --install-extension anthropic.claude-code@2.1.49 --force > Then right-click the extension → Disable Auto Update so it doesn't update back to the broken version. also reload your vs -> Ctrl+Shift+P -> Developer: Reload Window

my issue done fix with 2.1.52

weichun99 · 6 months ago
2.1.52 The issue has not been fixed.

for my cases, already fix, maybe u can try

npm uninstall -g @anthropic-ai/claude-code
npm install -g @anthropic-ai/claude-code@2.1.52

then restart for VS code, and try to open for it

github-actions[bot] · 6 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.