Return a better error message for when we are waiting for cargo.

This commit is contained in:
Manuel Ceron 2021-04-07 13:25:49 +02:00
parent a8f1e41f0f
commit dbd760010e

View File

@ -484,7 +484,7 @@ fn on_request(&mut self, request_received: Instant, req: Request) -> Result<()>
req.id,
// FIXME: i32 should impl From<ErrorCode> (from() guarantees lossless conversion)
lsp_server::ErrorCode::ContentModified as i32,
"Rust Analyzer is still loading...".to_owned(),
"waiting for cargo metadata or cargo check".to_owned(),
));
return Ok(());
}