mainThreadEditorsTracker: skip editors with models not in the model service

This commit is contained in:
isidor 2016-08-05 15:12:49 +02:00
parent 8d97953717
commit b4937be487

View file

@ -590,7 +590,7 @@ export class MainThreadEditorsTracker {
allCodeEditors.forEach((codeEditor) => {
let model = codeEditor.getModel();
if (!model || model.isTooLargeForHavingARichMode()) {
if (!model || model.isTooLargeForHavingARichMode() || !this._modelService.getModel(model.uri)) {
return;
}