-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git refresh should not show hidden submodules #88670
Comments
(Experimental duplicate detection) |
@xmedeko Can you share a screen recording of the issue? Thanks! |
I've made an example Then, I enter the command "Git: Refresh", but still see all submodules. I would like to see the original module Maybe some people want to see the hidden submodules, too? Then, I would welcome some way how to hide certain (user defined) submodules completely from the VS Code GUI. Even from the SOURCE CONTROL PROVIDERS list. |
Oh, when you hide a repository, you don't really close it. You're just hiding it from view, but VS Code still knows about it. Have you tried |
Yes, closing the repository is probably what I need, thanks. I cannot find a doc for that. Does it any git changes action or is it just a pure VS Code action? Also, is Note: I've read https://code.visualstudio.com/docs/editor/versioncontrol and tried to google for these features. |
It's a pure VS Code action. Since Glad to know this addresses your pain point, closing the issue. |
Yes, i have found the "Git: Ignored Repositories" in the Settings, but the doc "List of git repositories to ignore." is not much of help. How is that different to closing repo? How to open the repository again? When I try "Git: Open Repository", and choose the submodule path, then I do not see submodule in the Source Control bar. Does it work for submodules? |
OK, found the problem.
And then: So, in order to close a submodule permanently, I have to add it to the "Git: Ignored Repositories". In order to open it again, I have to remove it from the "Git: Ignored Repositories" first. It's pretty confusing. |
I have manual Git refresh (unchecked Git Autorefresh). I have hid some submodules also (Source Control -> right click on submodule -> Hide). When I invoke command "Git: Refresh" a list of all submodules is shown. I do not want to have hidden submodules in the list.
Note: the hidden submodules are kind of read-only for me and very rarely updated. I can refresh them from a command line if I need to, or show them, refresh and hide them. Maybe some command "Git: Refresh All" could be handy to refresh all submodules at once.
Note 2: have not tested the behaviour with Git Autorefresh, AFAIK hidden submodules should not be auto updated, too.
The text was updated successfully, but these errors were encountered: