Remove model.getMode()

This commit is contained in:
Alex Dima
2017-01-05 13:10:11 +01:00
parent 8df18d091f
commit bb49af3316
13 changed files with 19 additions and 54 deletions

View File

@@ -106,7 +106,7 @@ export class MainThreadDocuments extends MainThreadDocumentsShape {
url: model.uri,
versionId: model.getVersionId(),
value: model.toRawText(),
modeId: model.getMode().getId(),
modeId: model.getModeId(),
isDirty: this._textFileService.isDirty(modelUrl)
});
}
@@ -117,7 +117,7 @@ export class MainThreadDocuments extends MainThreadDocumentsShape {
if (!this._modelIsSynced[modelUrl.toString()]) {
return;
}
this._proxy.$acceptModelModeChanged(model.uri.toString(), oldModeId, model.getMode().getId());
this._proxy.$acceptModelModeChanged(model.uri.toString(), oldModeId, model.getModeId());
}
private _onModelRemoved(model: editorCommon.IModel): void {