mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Remove model.getMode()
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user