From d5ae887cbbb1f5986587852702b23e2914106b5f Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Tue, 30 Sep 2025 11:29:59 +0800 Subject: [PATCH] editor: Fix hover definition to immediately hide when move out. (#1309) --- crates/ui/src/input/lsp/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui/src/input/lsp/mod.rs b/crates/ui/src/input/lsp/mod.rs index 85b96726..5dc580b7 100644 --- a/crates/ui/src/input/lsp/mod.rs +++ b/crates/ui/src/input/lsp/mod.rs @@ -112,11 +112,12 @@ impl InputState { cx: &mut Context, ) { if event.modifiers.secondary() { - self.hover_popover = None; self.handle_hover_definition(offset, window, cx); } else { self.hover_definition.clear(); + self.hover_popover = None; self.handle_hover_popover(offset, window, cx); } + cx.notify(); } }