From 25635adc00ebb34cdfcd52dbc5b7149e7f01906f Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 4 Apr 2023 19:24:50 +0200 Subject: [PATCH] Show proc-macro spawn errors as status notification warnings --- crates/rust-analyzer/src/reload.rs | 4 ++++ 1 file changed, 4 insertions(+) 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()