telemetry - restore back load/save reason for files

This commit is contained in:
Benjamin Pasero
2020-01-13 16:01:05 +01:00
parent 11045f78f7
commit 76c72ffc94
10 changed files with 45 additions and 35 deletions

View File

@@ -104,9 +104,9 @@ export class MainThreadDocuments implements MainThreadDocumentsShape {
this._toDispose.add(this._modelReferenceCollection);
this._toDispose.add(modelService.onModelModeChanged(this._onModelModeChanged, this));
this._toDispose.add(textFileService.models.onDidSave(m => {
if (this._shouldHandleFileEvent(m.resource)) {
this._proxy.$acceptModelSaved(m.resource);
this._toDispose.add(textFileService.models.onDidSave(e => {
if (this._shouldHandleFileEvent(e.model.resource)) {
this._proxy.$acceptModelSaved(e.model.resource);
}
}));
this._toDispose.add(textFileService.models.onDidRevert(m => {