提交 a1e140c8 编写于 作者: J Johannes Rieken

don't have API editor for model that are too large for ext host sync'ing, fixes #4373

上级 45320c11
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册