[BUG] Claude VS Code Extension – Command 'claude-vscode.editor.openLast' Not Found
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?
The Claude VS Code extension fails to execute commands and shows the following error:
command 'claude-vscode.editor.openLast' not found
The issue started suddenly even though the extension was previously working correctly.
Claude appears installed in VS Code, but the extension commands are not loading or registering properly. As a result, Claude chat/session functionality cannot be opened.
Troubleshooting steps already attempted:
Reloaded VS Code window
Reinstalled Claude extension
Deleted Claude extension folder from .vscode/extensions
Cleared VS Code extension cache
Restarted VS Code and system
Disabled other AI-related extensions
Expected behavior:
Claude extension should initialize successfully and open the previous Claude session/editor without errors.
Actual behavior:
VS Code immediately shows:
command 'claude-vscode.editor.openLast' not found
What Should Happen?
The Claude VS Code extension should activate successfully after installation and register all required commands correctly.
When launching Claude or reopening the previous session, the extension should open the Claude editor/chat interface normally without displaying any command-related errors.
Claude commands should also appear and function correctly in the VS Code Command Palette.
Error Messages/Logs
command 'claude-vscode.editor.openLast' not found
No Claude commands are available in the Command Palette after installation.
Extension appears installed but does not activate correctly inside VS Code.
Steps to Reproduce
- Open Visual Studio Code
- Install or enable the Claude VS Code extension
- Launch Claude from the sidebar or command palette
- Attempt to open the previous Claude session/editor
- Observe the error:
- command 'claude-vscode.editor.openLast' not found
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.129
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
- Issue started suddenly without manual configuration changes
- Reinstalling the extension does not resolve the issue
- Claude extension folder was manually removed and installed again
- Other VS Code functionality works correctly
- Environment:
- OS: Windows 11
- VS Code: Latest stable version
- Claude Extension Version: 2.1.129-win32-x64
- Platform: Anthropic API
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗