aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorManuel Ceron <[email protected]>2021-04-07 12:25:49 +0100
committerManuel Ceron <[email protected]>2021-04-07 13:33:41 +0100
commitdbd760010e3ca7c0ba239b0ae88a5729b93ae7d8 (patch)
tree141f593a54849741934991885234fd9cb3da0080 /crates
parenta8f1e41f0f15fee02a73850db559752a9124d014 (diff)
Return a better error message for when we are waiting for cargo.
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/main_loop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index a5655116b..47c6c6d77 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -484,7 +484,7 @@ impl GlobalState {
484 req.id, 484 req.id,
485 // FIXME: i32 should impl From<ErrorCode> (from() guarantees lossless conversion) 485 // FIXME: i32 should impl From<ErrorCode> (from() guarantees lossless conversion)
486 lsp_server::ErrorCode::ContentModified as i32, 486 lsp_server::ErrorCode::ContentModified as i32,
487 "Rust Analyzer is still loading...".to_owned(), 487 "waiting for cargo metadata or cargo check".to_owned(),
488 )); 488 ));
489 return Ok(()); 489 return Ok(());
490 } 490 }