Skip to content

Conversation

@lszomoru
Copy link
Member

Copilot AI review requested due to automatic review settings January 27, 2026 14:44
@lszomoru lszomoru enabled auto-merge (squash) January 27, 2026 14:44
@lszomoru lszomoru self-assigned this Jan 27, 2026
@lszomoru lszomoru added the git GIT issues label Jan 27, 2026
@lszomoru lszomoru added this to the January 2026 milestone Jan 27, 2026
Tyriar
Tyriar previously approved these changes Jan 27, 2026
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 adjusts the Git extension’s repository opening behavior so that the git.openRepository command actually opens the selected repository instead of treating it as a parent-only repository, addressing microsoft/vscode-internalbacklog#6655.

Changes:

  • Extended Model.openRepository to accept a new openIfParent flag that bypasses the “parent repository” handling when appropriate.
  • Updated the git.openRepository command to call model.openRepository with openIfClosed and openIfParent set to true, ensuring that explicitly opened repositories are fully opened even if they live in parent folders.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
extensions/git/src/model.ts Adds an openIfParent parameter and uses it to skip the parent-repository special handling when explicitly requested.
extensions/git/src/commands.ts Updates the git.openRepository command to pass openIfClosed=true and openIfParent=true so the chosen repository is always opened as a normal repo.

@lszomoru lszomoru merged commit 3fbb12a into main Jan 27, 2026
22 checks passed
@lszomoru lszomoru deleted the lszomoru/sure-kiwi branch January 27, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants