mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
mainThreadEditorsTracker: skip editors with models not in the model service
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user