提交 f1e4efb9 编写于 作者: M Matt Bierner

Position may be null

Fixes #51662
上级 b5b211f2
...@@ -53,7 +53,7 @@ export class LightBulbWidget implements IDisposable, IContentWidget { ...@@ -53,7 +53,7 @@ export class LightBulbWidget implements IDisposable, IContentWidget {
const { lineHeight } = this._editor.getConfiguration(); const { lineHeight } = this._editor.getConfiguration();
let pad = Math.floor(lineHeight / 3); let pad = Math.floor(lineHeight / 3);
if (this._position.position.lineNumber < this._model.position.lineNumber) { if (this._position && this._position.position.lineNumber < this._model.position.lineNumber) {
pad += lineHeight; pad += lineHeight;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册