Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Hide inline overlays when context menu is open (#45266)
Mustaque Ahmede44529ed7ba3
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex f7b6aa949e7..4c3b44335bc 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -5417,6 +5417,12 @@ impl EditorElement {.max(MIN_POPOVER_LINE_HEIGHT * line_height), // Apply minimum height of 4 lines);+ // Don't show hover popovers when context menu is open to avoid overlap+ let has_context_menu = self.editor.read(cx).mouse_context_menu.is_some();+ if has_context_menu {+ return;+ }+let hover_popovers = self.editor.update(cx, |editor, cx| {editor.hover_state.render(snapshot,