Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for single files #321
Can you try this private build and see if it resolves the issue for you:
To install it, remove the
Looking alright so far.
Although I noticed that, upon closing the file in VS Code, the repository will remain active in the "GitLens" section under "Source Control" view in the activity bar, until another file is open.
But I also noticed the same is true for the native Git integration, anyway.
Yeah, it gets a bit tricky to reliably track when the repository should close (if you open multiple files, etc). I have added support to "close" a repository which won't completely remove it, will hide it from the GitLens explorer from then on.
I have also discovered that vscode doesn't provide a way to watch for file changes outside the folder(s) opened, so if you open single files, the repository for it doesn't update properly to reflect changes.
The work to fix that is non-trivial and nothing I want to tackle at this point, but if Microsoft/vscode#3025 is added, then I can easily add that support.