提交 8c24bc7d 编写于 作者: I isidor

editorStatus: null guard

fixes #3409
上级 11cea1b1
......@@ -528,7 +528,9 @@ export class EditorStatus implements IStatusbarItem {
let info: StateDelta = { EOL: null };
if (!codeEditor.getConfiguration().readOnly) {
let codeEditorModel = codeEditor.getModel();
info.EOL = codeEditorModel.getEOL();
if (codeEditorModel) {
info.EOL = codeEditorModel.getEOL();
}
}
this.updateState(info);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册