Unnamed repository; edit this file 'description' to name the repository.
Show proc-macro spawn errors as status notification warnings
Lukas Wirth 2023-04-05
parent 6644fe3 · commit 25635ad
-rw-r--r--crates/rust-analyzer/src/reload.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs
index 8b094f3202..f90df169be 100644
--- a/crates/rust-analyzer/src/reload.rs
+++ b/crates/rust-analyzer/src/reload.rs
@@ -108,6 +108,10 @@ impl GlobalState {
status.health = lsp_ext::Health::Warning;
message.push_str("Failed to run build scripts of some packages.\n\n");
}
+ if self.proc_macro_clients.iter().any(|it| it.is_err()) {
+ status.health = lsp_ext::Health::Warning;
+ message.push_str("Failed to spawn one or more proc-macro servers.\n\n");
+ }
if !self.config.cargo_autoreload()
&& self.is_quiescent()
&& self.fetch_workspaces_queue.op_requested()