From 16105da122cf1a0dae450ee959e361d044e5939f Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 25 Sep 2025 15:50:12 +0800 Subject: [PATCH] editor: Avoid trigger hover on selection. (#1287) --- crates/ui/src/input/lsp/hover.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ui/src/input/lsp/hover.rs b/crates/ui/src/input/lsp/hover.rs index 37d81f2e..992f8210 100644 --- a/crates/ui/src/input/lsp/hover.rs +++ b/crates/ui/src/input/lsp/hover.rs @@ -28,6 +28,10 @@ impl InputState { window: &mut Window, cx: &mut Context, ) { + if self.selecting { + return; + } + let Some(provider) = self.lsp.hover_provider.clone() else { return; };