VS Code: File links in sidebar open in new editor group instead of existing one

Resolved 💬 3 comments Opened Mar 13, 2026 by Ryo-watson Closed Mar 16, 2026

Description

When Claude Code is placed in the VS Code sidebar, clicking file links (e.g., from Read tool results) opens files in a new editor group (group 2) instead of the existing editor group (group 1).

Expected behavior

Files should open in the first/active editor group (group 1), not create a new editor group.

Current behavior

  1. Claude Code is placed in the sidebar (via preferredLocation: sidebar)
  2. Claude Code displays a file path (e.g., from a Read tool result)
  3. Clicking the file link creates a new editor group (group 2) and opens the file there
  4. This leaves an unwanted empty or split layout

Environment

  • VS Code (latest)
  • Claude Code extension

Workaround

Setting "workbench.editor.closeEmptyGroups": true helps clean up empty groups, but files still open in group 2 instead of group 1.

Suggestion

Add a setting to control which editor group file links open in, or default to opening in the first/existing editor group.

View original on GitHub ↗

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