Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Show inlay label parts' tooltips if those are present and hovered (#41889)

Kirill Bulatovcc6208b17fe8
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index 761d71d43b2..7fa5daed9c5 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -1310,7 +1310,14 @@ impl EditorElement {
hover_at(editor, Some(anchor), window, cx);
Self::update_visible_cursor(editor, point, position_map, window, cx);
} else {
- hover_at(editor, None, window, cx);
+ editor.update_inlay_link_and_hover_points(
+ &position_map.snapshot,
+ point_for_position,
+ modifiers.secondary(),
+ modifiers.shift,
+ window,
+ cx,
+ );
}
} else {
editor.hide_hovered_link(cx);