Don't show loading message
This commit is contained in:
parent
b1cd20a435
commit
c96b6a06f0
1 changed files with 0 additions and 20 deletions
|
@ -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"))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue