claude-vscode.primaryEditor.open command declared in manifest but not registered in extension

Resolved 💬 2 comments Opened Feb 28, 2026 by rfc1437 Closed Mar 28, 2026

Bug Description

The command claude-vscode.primaryEditor.open ("Claude Code: Open in Primary Editor") is declared in the extension's package.json but has no corresponding registerCommand handler in the extension runtime. Binding a keyboard shortcut to it and executing it fails with "command not known".

Steps to Reproduce

  1. Open VSCode keyboard shortcuts (Cmd+K Cmd+S)
  2. Add a keybinding for command claude-vscode.primaryEditor.open
  3. Press the bound key

Expected Behavior

Claude Code opens in the primary editor column.

Actual Behavior

Error: command claude-vscode.primaryEditor.open is not known / not executed.

Evidence

The command appears in package.json contributes:

{ "command": "claude-vscode.primaryEditor.open", "title": "Claude Code: Open in Primary Editor" }

But scanning extension.js for all registered claude-vscode.* command strings shows it is absent — every other declared command is present except this one.

Commands actually registered at runtime:

  • claude-vscode.editor.open
  • claude-vscode.editor.openLast
  • claude-vscode.sidebar.open
  • claude-vscode.window.open
  • claude-vscode.terminal.open
  • claude-vscode.focus / claude-vscode.blur
  • claude-vscode.newConversation
  • claude-vscode.insertAtMention
  • claude-vscode.logout
  • claude-vscode.showLogs
  • etc.

claude-vscode.primaryEditor.open is not in this list.

Environment

  • Extension version: 2.1.61 (darwin-arm64)
  • VSCode: latest
  • OS: macOS

Workaround

Use claude-vscode.editor.openLast or claude-vscode.editor.open as a substitute until the handler is implemented.

View original on GitHub ↗

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