We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5200dcd commit 43f362bCopy full SHA for 43f362b
1 file changed
extensions/git/src/model.ts
@@ -148,6 +148,13 @@ export class Model implements IRemoteSourceProviderRegistry {
148
}
149
150
private onPossibleGitRepositoryChange(uri: Uri): void {
151
+ const config = workspace.getConfiguration('git');
152
+ const autoRepositoryDetection = config.get<boolean | 'subFolders' | 'openEditors'>('autoRepositoryDetection');
153
+
154
+ if (autoRepositoryDetection === false) {
155
+ return;
156
+ }
157
158
this.eventuallyScanPossibleGitRepository(uri.fsPath.replace(/\.git.*$/, ''));
159
160
0 commit comments