mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-05 15:36:22 +01:00
fixes #96356
This commit is contained in:
1 file changed
+7
@@ -148,6 +148,13 @@ export class Model implements IRemoteSourceProviderRegistry {
|
||||
}
|
||||
|
||||
private onPossibleGitRepositoryChange(uri: Uri): void {
|
||||
const config = workspace.getConfiguration('git');
|
||||
const autoRepositoryDetection = config.get<boolean | 'subFolders' | 'openEditors'>('autoRepositoryDetection');
|
||||
|
||||
if (autoRepositoryDetection === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.eventuallyScanPossibleGitRepository(uri.fsPath.replace(/\.git.*$/, ''));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user