Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Hide editor hovers when a menu is open
Conrad Irwin53b47c15ac53
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex eeb8263f30f..ee40b8e4781 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -2153,14 +2153,18 @@ impl EditorElement {.max(MIN_POPOVER_LINE_HEIGHT * line_height), // Apply minimum height of 4 lines);- let hover = editor.hover_state.render(+ let hover = if context_menu.is_some() {+ None+ } else {+ editor.hover_state.render(&snapshot,&style,visible_rows,max_size,editor.workspace.as_ref().map(|(w, _)| w.clone()),cx,- );+ )+ };let editor_view = cx.view().clone();let fold_indicators = cx.with_element_context(|cx| {