From c96b6a06f075ce86342f96ec0d8a4b25beb38f5c Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 10 Jul 2025 17:46:13 -0400 Subject: [PATCH] Don't show loading message --- crates/editor/src/hover_links.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/crates/editor/src/hover_links.rs b/crates/editor/src/hover_links.rs index 6e93748fb0..8d580087de 100644 --- a/crates/editor/src/hover_links.rs +++ b/crates/editor/src/hover_links.rs @@ -440,7 +440,6 @@ pub fn update_inlay_link_and_hover_points( part.location.clone() { // When there's no tooltip but we have a location, perform a "Go to Definition" style operation - // First show a loading message let filename = location .uri .path() @@ -449,20 +448,6 @@ pub fn update_inlay_link_and_hover_points( .unwrap_or("unknown") .to_string(); - hover_popover::hover_at_inlay( - editor, - InlayHover { - tooltip: HoverBlock { - text: "Loading documentation...".to_string(), - kind: HoverBlockKind::PlainText, - }, - range: highlight.clone(), - }, - window, - cx, - ); - hover_updated = true; - // Prepare data needed for the async task let project = editor.project.clone().unwrap(); let hint_value = part.value.clone(); @@ -471,11 +456,6 @@ pub fn update_inlay_link_and_hover_points( // Spawn async task to fetch documentation cx.spawn_in(window, async move |editor, cx| { - // Small delay to show the loading message first - cx.background_executor() - .timer(std::time::Duration::from_millis(50)) - .await; - // Convert LSP URL to file path let file_path = location.uri.to_file_path() .map_err(|_| anyhow::anyhow!("Invalid file URL"))?;