Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Do not show signature help when editor is not focused (#15080)
Kirill Bulatovbabf8923eeb5
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex 67805e33f2a..1897bbd6f01 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -2805,6 +2805,9 @@ impl EditorElement {em_width: Pixels,cx: &mut WindowContext,) {+ if !self.editor.focus_handle(cx).is_focused(cx) {+ return;+ }let Some(newest_selection_head) = newest_selection_head else {return;};