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 @@ pub(crate) fn current_status(&self) -> lsp_ext::ServerStatusParams {
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()