fixes #96356
This commit is contained in:
parent
5200dcdf38
commit
43f362b448
1 changed files with 7 additions and 0 deletions
|
@ -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.*$/, ''));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue