text files - rename models => files

This commit is contained in:
Benjamin Pasero
2020-01-16 12:47:46 +01:00
parent 3d9d1f9f2a
commit 41eabcfcd6
27 changed files with 79 additions and 79 deletions

View File

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