mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
Show proc-macro spawn errors as status notification warnings
This commit is contained in:
parent
6644fe3441
commit
25635adc00
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue