Skip to content

Commit 5d9a937

Browse files
authored
Try to position code action widget from markers view better (microsoft#182707)
microsoft#141958 added a `height` parameter to the anchor. I believe this is causing the code action widget to be pushed too far down the screen since we were also manually adding the`height` to compute the `y` value By removing this, the code action widget should show closer to the mouse position
1 parent b94f299 commit 5d9a937

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/editor/contrib/hover/browser/markerHoverParticipant.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ export class MarkerHoverParticipant implements IEditorHoverParticipant<MarkerHov
228228
// context menu as well when using keyboard navigation
229229
context.hide();
230230
controller?.showCodeActions(markerCodeActionTrigger, actions, {
231-
x: elementPosition.left + 6,
232-
y: elementPosition.top + elementPosition.height + 6,
231+
x: elementPosition.left,
232+
y: elementPosition.top,
233233
width: elementPosition.width,
234234
height: elementPosition.height
235235
});

0 commit comments

Comments
 (0)