mainThreadEditorsTracker: skip editors with models not in the model service
This commit is contained in:
parent
8d97953717
commit
b4937be487
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue