提交 bdd1a312 编写于 作者: A Alex Dima

Fixes #14253: Uncaught TypeError: Cannot read property 'getLineLastNonWhitespaceColumn' of null

上级 264a178c
......@@ -825,6 +825,9 @@ export class DiffEditorWidget extends EventEmitter implements editorBrowser.IDif
}
private _updateDecorations(): void {
if (!this.originalEditor.getModel() || !this.modifiedEditor.getModel()) {
return;
}
var lineChanges = this._lineChanges || [];
var foreignOriginal = this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册