claude-vscode.editor.open always opens tab in first/primary VS Code window instead of focused window
Resolved 💬 3 comments Opened Mar 4, 2026 by sdultsin Closed Apr 24, 2026
Bug
When multiple VS Code windows are open (including across macOS desktops/Spaces), running claude-vscode.editor.open via the command palette or keybinding always opens the Claude Code tab in the leftmost/primary VS Code window, not the currently focused one.
Steps to reproduce
- Open two VS Code windows (optionally on different macOS desktops)
- Focus the second (non-primary) window
- Run
claude-vscode.editor.openvia Cmd+Shift+P or keybinding - The Claude Code tab opens in the first window, not the focused one
Note: The command palette itself appears in the correct (focused) window - it's only the resulting tab that opens in the wrong window.
Expected behavior
The Claude Code tab should open in the currently focused VS Code window.
Environment
- macOS 24.6.0 (Darwin)
- Claude Code extension v2.1.68
- VS Code latest
- Apple Silicon (arm64)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗