mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Fixes #61027, Error: Cannot read property 'getModeId' of null
This commit is contained in:
@@ -50,6 +50,10 @@ export class MainThreadComments extends Disposable implements MainThreadComments
|
||||
}
|
||||
const id = editor.getId();
|
||||
const model = editor.getModel();
|
||||
if (model === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (editors.filter(ed => ed.getId() === id).length > 0) {
|
||||
// it's an active editor, we are going to update this editor's comments anyways
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user