提交 2e44999b 编写于 作者: M Matt Bierner

Make sure we validate position in light bulb widget

Fixes #93214
上级 6e2b57a0
......@@ -153,12 +153,13 @@ export class LightBulbWidget extends Disposable implements IContentWidget {
return this.hide();
}
const { lineNumber, column } = atPosition;
const model = this._editor.getModel();
if (!model) {
return this.hide();
}
const { lineNumber, column } = model.validatePosition(atPosition);
const tabSize = model.getOptions().tabSize;
const fontInfo = options.get(EditorOption.fontInfo);
const lineContent = model.getLineContent(lineNumber);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册