[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
- Click the top right claude icon
- error show claude-vscode.editor.openLast
- 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_
13 Comments
Go back to version 2.1.49
try downgrading your claude extension to version 2.1.49
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
It's fixed already in 2.1.52
same error is coming
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
2.1.52 The issue has not been fixed.
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
yes for my case, this able to fix
my issue done fix with 2.1.52
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
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.