Skip to content

Git - file-system provider should open the repository if not already opened#297783

Merged
lszomoru merged 4 commits intomainfrom
lszomoru/git-fs-open-repository
Feb 28, 2026
Merged

Git - file-system provider should open the repository if not already opened#297783
lszomoru merged 4 commits intomainfrom
lszomoru/git-fs-open-repository

Conversation

@lszomoru
Copy link
Member

No description provided.

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 updates the Git extension’s git: FileSystemProvider to auto-open a repository on-demand when serving stat/readFile requests, instead of failing when the repository is not currently opened in the Git model.

Changes:

  • Introduces a getOrOpenRepository helper to resolve a repository, attempting to open it if missing.
  • Switches stat and readFile to use the new helper for both regular git: URIs and submoduleOf cases.

@lszomoru lszomoru marked this pull request as ready for review February 28, 2026 16:05
@lszomoru lszomoru enabled auto-merge (squash) February 28, 2026 16:05
@lszomoru lszomoru added this to the March 2026 milestone Feb 28, 2026
@lszomoru lszomoru added the git GIT issues label Feb 28, 2026
@lszomoru lszomoru merged commit f06f862 into main Feb 28, 2026
29 of 31 checks passed
@lszomoru lszomoru deleted the lszomoru/git-fs-open-repository branch February 28, 2026 16:49
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.

3 participants