Skip to content

Commit cc6208b

Browse files
Show inlay label parts' tooltips if those are present and hovered (#41889)
Part of #33715 https://github.com/user-attachments/assets/d2d6f47d-3974-4c8c-aab9-9046891186bf Unlike VSCode that does more advanced hovering, this one only works for inlays with tooltip LSP data in them. Release Notes: - Started to show inlay label parts' tooltips when they are hovered Co-authored-by: Lukas Wirth <[email protected]>
1 parent 8d15ec7 commit cc6208b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

crates/editor/src/element.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,14 @@ impl EditorElement {
13101310
hover_at(editor, Some(anchor), window, cx);
13111311
Self::update_visible_cursor(editor, point, position_map, window, cx);
13121312
} else {
1313-
hover_at(editor, None, window, cx);
1313+
editor.update_inlay_link_and_hover_points(
1314+
&position_map.snapshot,
1315+
point_for_position,
1316+
modifiers.secondary(),
1317+
modifiers.shift,
1318+
window,
1319+
cx,
1320+
);
13141321
}
13151322
} else {
13161323
editor.hide_hovered_link(cx);

0 commit comments

Comments
 (0)