fix tests

This commit is contained in:
Benjamin Pasero
2020-01-13 16:59:08 +01:00
parent a62805844e
commit 2a3dc1edac
2 changed files with 10 additions and 9 deletions

View File

@@ -109,14 +109,9 @@ export class MainThreadDocuments implements MainThreadDocumentsShape {
this._proxy.$acceptModelSaved(e.model.resource);
}
}));
this._toDispose.add(textFileService.models.onDidRevert(m => {
if (this._shouldHandleFileEvent(m.resource)) {
this._proxy.$acceptDirtyStateChanged(m.resource, false);
}
}));
this._toDispose.add(textFileService.models.onDidChangeDirty(m => {
if (this._shouldHandleFileEvent(m.resource)) {
this._proxy.$acceptDirtyStateChanged(m.resource, true);
this._proxy.$acceptDirtyStateChanged(m.resource, m.isDirty());
}
}));