Skip to content

Cannot open a worktree in the integrated terminal from the Commit Graph or Worktrees view #5386

Description

@eamodio

Summary

Worktree items in the Commit Graph sidebar and the Worktrees view offer no way to open the worktree's folder in VS Code's integrated terminal — even though repositories and folders already do.

Impact

Anyone juggling multiple worktrees who wants a terminal rooted at a specific worktree. Today they have to reveal the worktree in the file explorer and open a terminal by hand, or open the worktree as a workspace first. Since repositories and folders already expose "Open in Integrated Terminal," worktrees are an inconsistent gap.

Validation

  1. Open a repo that has at least one secondary worktree.
  2. In the Commit Graph, expand the worktrees in the sidebar, right-click a worktree → Open in Integrated Terminal; confirm a terminal opens at that worktree's folder (not the main repo).
  3. In the Worktrees view, right-click a worktree node → Open in Integrated Terminal; confirm the same.
  4. In a remote-dev session (SSH / vscode.dev), confirm the terminal opens at the correct worktree path.

Risk

Low — builds on the integrated-terminal action already available for repositories and folders, and existing behavior is unchanged. The action is hidden in virtual workspaces where no terminal is available.

Metadata

Metadata

Assignees

Labels

area-graphIssues or features related to the Commit Grapharea-terminalIssues or features related to the terminalarea-worktreesIssues or features related to worktreesneeds-verificationRequest for verificationpending-releaseResolved but not yet released to the stable edition
No fields configured for Enhancement.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions