microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.07k stars 28.8k forks source link

Feature Request - Add option to prevent new repositories from being selected in Source Control Repositories pane #230348

Open dalgarin opened 22 hours ago

dalgarin commented 22 hours ago

Background I use a single folder workspace where miscellaneous sub-folders are git repos. When viewing the Source Control tab, multiple repositories are displayed as expected in the Source Control Repositories pane. Switching between the selected repository in the Source Control Repositories pane changes which repository and changes are displayed in the Source Control pane. I find the Source Control pane becomes too busy/confusing if more than one repository is selected in the Source Control Repositories pane and so I only ever have a single repository selected at any given time. The problem arises when one or more new folders/repositories are added to the workspace. VSCode picks up the new repositories and adds them to the Source Control Repositories pane as expected, however it also makes each new repository "selected" in addition to whichever repository was previously selected. You can of course just locate and click on the desired repository to restore the Source Control pane to a sane state, however the default behavior of "selecting" new repositories seems unnecessary.

Feature Request Add an option to the SCM settings to disable the behavior where newly added repositories are "selected" by default.

vs-code-engineering[bot] commented 15 hours ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!