[BUG] Error: command 'claude-vscode.editor.openLast' not found at pit.n (commandService.ts:95:26)

Resolved 💬 3 comments Opened Feb 24, 2026 by sa-mamun 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?

Description:
Clicking the Claude Code icon in the top right corner of VS Code
throws an error: command 'claude-vscode.editor.openLast' not found.
Terminal usage works fine.

Error:
Error: command 'claude-vscode.editor.openLast' not found
at pit.n (commandService.ts:95:26)
at pit.executeCommand (commandService.ts:89:15)
at async Get.u (actions.ts:199:3)
at async Get.run (actions.ts:190:4)
at async $h.onClick (menuEntryActionViewItem.ts:211:4)

Environment:

  • OS: Windows 11
  • VS Code version: [your version]
  • Claude Code extension version: 2.1.51
  • Claude CLI version: 2.1.51

Steps to reproduce:

  1. Install Claude Code extension v2.1.51
  2. Click the Claude Code icon in the top right corner of VS Code editor
  3. Error appears in Developer Console

Expected: Chat window opens
Actual: Command not found error

What Should Happen?

Clicking the Claude Code icon in the top right corner of VS Code should open the chat panel successfully, just like using Claude Code from the terminal.

Error Messages/Logs

Steps to Reproduce

  1. Install Claude Code extension v2.1.51 in VS Code
  2. Click the Claude Code icon in the top right corner of the editor toolbar
  3. Check the Developer Console (Help > Toggle Developer Tools)

Claude Model

None

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 ↗

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