Preflight Checklist
Problem Statement
I keep both the integrated terminal and the Claude Code chat view docked in the secondary side bar (right), while the sessions list lives in the primary side bar (left activity bar).
When I click a session in the sessions list, it always opens as an editor tab in the center editor group. This takes over my code editing area every time. Setting claudeCode.preferredLocation to "sidebar" does not change this — clicked sessions still open in the editor.
From inspecting the extension (v2.1.170), it looks like:
claudeCode.preferredLocation only affects the generic "Claude Code: Open" command (editor.openLast) and the status bar button — not clicks in the sessions list.
- Session-list clicks route only through the "open in editor" path (
claude-vscode.editor.open), with no code path that loads a specific session into the secondary sidebar view.
claude-vscode.sidebar.open takes no session argument, so it only focuses the sidebar — it can't load a selected session.
Proposed Solution
- Make session-list clicks respect
claudeCode.preferredLocation, so that with "sidebar" set, clicking a session opens/reuses the Claude Code view in the secondary side bar instead of an editor tab.
- Add a command such as "Claude Code: Open Session in Side Bar" that accepts a session id, plus a context-menu entry on session items in the list.
Alternative Solutions
- A per-session-list setting (e.g.
claudeCode.sessionsList.openLocation: editor | sidebar | window) decoupled from the generic open behavior.
- Allow choosing the open target via modifier-click (e.g. Ctrl/Alt+click to open in sidebar) or a small location toggle in the sessions list header.
Priority
Medium - Would be very helpful
Feature Category
Developer tools/SDK
Use Case Example
My layout: editor groups in the center for code, Claude Code chat + integrated terminal pinned together in the right secondary side bar. I browse past sessions in the left sessions list and want to resume one. Today, clicking it spawns an editor tab that disrupts my code layout; I want it to appear in the Claude view on the right, next to my terminal, where I already work with Claude.
Additional Context
- Claude Code extension: v2.1.170
- VSCode: with secondary side bar support enabled
- OS: Windows 11
claudeCode.preferredLocation set to "sidebar" in settings
Preflight Checklist
Problem Statement
I keep both the integrated terminal and the Claude Code chat view docked in the secondary side bar (right), while the sessions list lives in the primary side bar (left activity bar).
When I click a session in the sessions list, it always opens as an editor tab in the center editor group. This takes over my code editing area every time. Setting
claudeCode.preferredLocationto"sidebar"does not change this — clicked sessions still open in the editor.From inspecting the extension (v2.1.170), it looks like:
claudeCode.preferredLocationonly affects the generic "Claude Code: Open" command (editor.openLast) and the status bar button — not clicks in the sessions list.claude-vscode.editor.open), with no code path that loads a specific session into the secondary sidebar view.claude-vscode.sidebar.opentakes no session argument, so it only focuses the sidebar — it can't load a selected session.Proposed Solution
claudeCode.preferredLocation, so that with"sidebar"set, clicking a session opens/reuses the Claude Code view in the secondary side bar instead of an editor tab.Alternative Solutions
claudeCode.sessionsList.openLocation:editor|sidebar|window) decoupled from the generic open behavior.Priority
Medium - Would be very helpful
Feature Category
Developer tools/SDK
Use Case Example
My layout: editor groups in the center for code, Claude Code chat + integrated terminal pinned together in the right secondary side bar. I browse past sessions in the left sessions list and want to resume one. Today, clicking it spawns an editor tab that disrupts my code layout; I want it to appear in the Claude view on the right, next to my terminal, where I already work with Claude.
Additional Context
claudeCode.preferredLocationset to"sidebar"in settings