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()
|
part.location.clone()
|
||||||
{
|
{
|
||||||
// When there's no tooltip but we have a location, perform a "Go to Definition" style operation
|
// 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
|
let filename = location
|
||||||
.uri
|
.uri
|
||||||
.path()
|
.path()
|
||||||
|
@ -449,20 +448,6 @@ pub fn update_inlay_link_and_hover_points(
|
||||||
.unwrap_or("unknown")
|
.unwrap_or("unknown")
|
||||||
.to_string();
|
.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
|
// Prepare data needed for the async task
|
||||||
let project = editor.project.clone().unwrap();
|
let project = editor.project.clone().unwrap();
|
||||||
let hint_value = part.value.clone();
|
let hint_value = part.value.clone();
|
||||||
|
@ -471,11 +456,6 @@ pub fn update_inlay_link_and_hover_points(
|
||||||
|
|
||||||
// Spawn async task to fetch documentation
|
// Spawn async task to fetch documentation
|
||||||
cx.spawn_in(window, async move |editor, cx| {
|
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
|
// Convert LSP URL to file path
|
||||||
let file_path = location.uri.to_file_path()
|
let file_path = location.uri.to_file_path()
|
||||||
.map_err(|_| anyhow::anyhow!("Invalid file URL"))?;
|
.map_err(|_| anyhow::anyhow!("Invalid file URL"))?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue