diff --git a/src/vs/editor/contrib/quickFix/browser/lightBulbWidget.ts b/src/vs/editor/contrib/quickFix/browser/lightBulbWidget.ts index d348c449c3bc0184b612a16259eef51d3ab1c355..54eb2ce5f25b266ca58604e64ce39bc0f7ee97a9 100644 --- a/src/vs/editor/contrib/quickFix/browser/lightBulbWidget.ts +++ b/src/vs/editor/contrib/quickFix/browser/lightBulbWidget.ts @@ -55,7 +55,15 @@ export class LightBulbWidget implements IOverlayWidget, IDisposable { this._domNode.className = 'lightbulb-glyph hidden'; this._toDispose.push(dom.addDisposableListener(this._domNode, 'mousedown', (e: MouseEvent) => { e.preventDefault(); - this._onClick.fire({ x: e.clientX, y: e.clientY }); + + // a bit of extra work to make sure the menu + // doesn't cover the line-text + const {top, height} = dom.getDomNodePagePosition(this._domNode); + const {lineHeight} = this._editor.getConfiguration(); + this._onClick.fire({ + x: e.clientX, + y: top + height + Math.floor(lineHeight / 3) + }); })); } return this._domNode;