提交 665182cd 编写于 作者: A Alex Dima

Fixes #3487

上级 e062f381
......@@ -524,13 +524,10 @@ export class EditorStatus implements IStatusbarItem {
return;
}
let codeEditor = getCodeEditor(e);
if (!codeEditor) {
return;
}
let info: StateDelta = { EOL: null };
if (!codeEditor.getConfiguration().readOnly) {
let codeEditor = getCodeEditor(e);
if (codeEditor && !codeEditor.getConfiguration().readOnly) {
let codeEditorModel = codeEditor.getModel();
if (codeEditorModel) {
info.EOL = codeEditorModel.getEOL();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册