mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
don't have API editor for model that are too large for ext host sync'ing, fixes #4373
This commit is contained in:
@@ -412,7 +412,7 @@ export class MainThreadEditorsTracker {
|
||||
private _doUpdateMapping(): void {
|
||||
let allModels = this._modelService.getModels();
|
||||
// Same filter as in extHostDocuments
|
||||
allModels.filter((model) => !model.isTooLargeForHavingARichMode());
|
||||
allModels = allModels.filter((model) => !model.isTooLargeForHavingARichMode());
|
||||
let allModelsMap: { [modelUri:string]: EditorCommon.IModel; } = Object.create(null);
|
||||
allModels.forEach((model) => {
|
||||
allModelsMap[model.getAssociatedResource().toString()] = model;
|
||||
@@ -572,7 +572,7 @@ export class MainThreadEditorsTracker {
|
||||
|
||||
allCodeEditors.forEach((codeEditor) => {
|
||||
let model = codeEditor.getModel();
|
||||
if (!model) {
|
||||
if (!model || model.isTooLargeForHavingARichMode()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user