microsoft/vscode

Allow to disable automatic repository discovery

carpet92 opened this issue · 4 comments

  • VSCode Version: 1.16.1
  • OS Version: Windows 10 1703 15063.632

When I Open Just One File in Initialized Git Folder - Source Control Shows Number of Changed Files. And project folder is not shows in explorer.

It's a Bug?

Steps to Reproduce:

  1. Open folder with Initialized Git Repository in VSCode and make some changes in files
  2. Then close VSCode
  3. Open only one file from this folder in VSCode (with right mouse button)

Gif Demonstration:

vscode-issue

Expected Behavior:

When I open just one file in Initialized Git Folder I need to see only this file. No any information from all project (as on gif).

Reproduces without extensions: Yes

We try to help you and start monitoring git repositories which contain files you edit. We believe this is a good thing.

Would you like a setting to disable this behaviour?

@joaomoreno

Would you like a setting to disable this behaviour?

Yes. If possible it will be great to have.

Do you want to attempt a PR?

I was thinking something like a git.autoRepositoryDetection setting, with a boolean value.

Fixed by #36183