From babf8923eeb53284b26c06789bce020988f6e7bf Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Wed, 24 Jul 2024 14:37:35 +0300 Subject: [PATCH] Do not show signature help when editor is not focused (#15080) Show the help again, if it was not dismissed and the editor regains focus. Release Notes: - N/A --- crates/editor/src/element.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index 67805e33f2a8e9be0a770d2268791656e4108001..1897bbd6f01d9c355df37bbc86e3185042f530ec 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; };