git: fix content provider events

This commit is contained in:
Joao Moreno
2017-08-17 11:36:50 +02:00
parent 20b7747ac4
commit f0c93eb9f7
3 changed files with 14 additions and 35 deletions

View File

@@ -51,8 +51,6 @@ export class GitContentProvider {
}
private fireChangeEvents(): void {
this.changedRepositoryRoots.clear();
Object.keys(this.cache).forEach(key => {
const uri = this.cache[key].uri;
const fsPath = uri.fsPath;
@@ -64,6 +62,8 @@ export class GitContentProvider {
}
}
});
this.changedRepositoryRoots.clear();
}
async provideTextDocumentContent(uri: Uri): Promise<string> {