Skip to content

Fixes misleading 'upgrade your Git' message for virtual repositories#5058

Merged
ianhattendorf merged 1 commit into
mainfrom
5056-worktrees-view-shows-upgrade-your-git-message-when-opening-a-virtual-github-repository
Mar 24, 2026
Merged

Fixes misleading 'upgrade your Git' message for virtual repositories#5058
ianhattendorf merged 1 commit into
mainfrom
5056-worktrees-view-shows-upgrade-your-git-message-when-opening-a-virtual-github-repository

Conversation

@ianhattendorf

Copy link
Copy Markdown
Contributor
  • Filters local-only views (worktrees, stashes) from the grouped SCM view when virtual folders are present
  • Re-evaluates grouped view availability when repositories change
  • Gates all worktrees welcome content with !gitlens:hasVirtualFolders
  • Adds 'Worktrees are not available for virtual repositories' message

Fixes #5056

…5056)

- Filters local-only views (worktrees, stashes) from the grouped SCM view when virtual folders are present
- Re-evaluates grouped view availability when repositories change
- Gates all worktrees welcome content with !gitlens:hasVirtualFolders
- Adds 'Worktrees are not available for virtual repositories' message
@augmentcode

augmentcode Bot commented Mar 23, 2026

Copy link
Copy Markdown
🤖 Augment PR Summary

Summary: Fixes the misleading Worktrees “upgrade your Git” messaging when opening virtual (GitHub) repositories.

Changes:

  • Filters local-only tabs (Worktrees, Stashes) out of the grouped SCM view whenever virtual folders are present
  • Re-evaluates grouped-view registration when the repository set changes
  • Gates Worktrees welcome content behind !gitlens:hasVirtualFolders and adds a dedicated “not available for virtual repositories” message

Technical Notes: Introduces localOnlyGroupedViews and uses the gitlens:hasVirtualFolders context key to drive the behavior.

🤖 Was this summary useful? React with 👍 or 👎

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review completed. 1 suggestion posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Comment thread src/views/views.ts
@ianhattendorf ianhattendorf requested a review from ramin-t March 24, 2026 15:01
@ianhattendorf ianhattendorf added this to the 17.12 milestone Mar 24, 2026

@d13 d13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@ianhattendorf ianhattendorf merged commit b8a353f into main Mar 24, 2026
6 checks passed
@ianhattendorf ianhattendorf deleted the 5056-worktrees-view-shows-upgrade-your-git-message-when-opening-a-virtual-github-repository branch March 24, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Worktrees view shows "upgrade your Git" message when opening a virtual GitHub repository

2 participants