Show proc-macro spawn errors as status notification warnings

This commit is contained in:
Lukas Wirth 2023-04-04 19:24:50 +02:00
parent 6644fe3441
commit 25635adc00

View file

@ -108,6 +108,10 @@ impl GlobalState {
status.health = lsp_ext::Health::Warning; status.health = lsp_ext::Health::Warning;
message.push_str("Failed to run build scripts of some packages.\n\n"); 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() if !self.config.cargo_autoreload()
&& self.is_quiescent() && self.is_quiescent()
&& self.fetch_workspaces_queue.op_requested() && self.fetch_workspaces_queue.op_requested()