mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
move autoRepositoryDetection implementation
This commit is contained in:
@@ -149,6 +149,13 @@ export class Model {
|
||||
}
|
||||
|
||||
private onDidChangeVisibleTextEditors(editors: TextEditor[]): void {
|
||||
const config = workspace.getConfiguration('git');
|
||||
const enabled = config.get<boolean>('autoRepositoryDetection') === true;
|
||||
|
||||
if (!enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
editors.forEach(editor => {
|
||||
const uri = editor.document.uri;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user