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

Scroll to reveal target position for code action widget, not current editor position

Fixes #68523
上级 9e440ff0
......@@ -69,7 +69,7 @@ export class CodeActionContextMenu {
this._editor.render();
// Translate to absolute editor position
const cursorCoords = this._editor.getScrolledVisiblePosition(this._editor.getPosition());
const cursorCoords = this._editor.getScrolledVisiblePosition(position);
const editorCoords = getDomNodePagePosition(this._editor.getDomNode());
const x = editorCoords.left + cursorCoords.left;
const y = editorCoords.top + cursorCoords.top + cursorCoords.height;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册