Skip to content

Git - do not prompt when opening a worktree#285107

Merged
lszomoru merged 2 commits intomainfrom
lszomoru/cruel-octopus
Dec 26, 2025
Merged

Git - do not prompt when opening a worktree#285107
lszomoru merged 2 commits intomainfrom
lszomoru/cruel-octopus

Conversation

@lszomoru
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 26, 2025 13:03
@lszomoru lszomoru enabled auto-merge (squash) December 26, 2025 13:03
@lszomoru lszomoru self-assigned this Dec 26, 2025
@lszomoru lszomoru added the git GIT issues label Dec 26, 2025
@lszomoru lszomoru added this to the December / January 2026 milestone Dec 26, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the handling of git worktrees by preventing them from triggering the parent repository prompt. The change removes the openIfParent parameter from the openRepository method and instead adds explicit worktree detection logic in the isRepositoryOutsideWorkspace method.

Key changes:

  • Removed the openIfParent parameter from openRepository method and updated all call sites
  • Added worktree path checking in isRepositoryOutsideWorkspace to recognize worktrees as inside the workspace even when they're physically stored outside

@lszomoru lszomoru merged commit d0bba70 into main Dec 26, 2025
28 checks passed
@lszomoru lszomoru deleted the lszomoru/cruel-octopus branch December 26, 2025 13:37
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants