Auto merge of #15359 - Veykril:proc-macro-srv-spawn-err, r=Veykril

Write proc-macro server spawn errors to the status text
This commit is contained in:
bors 2023-07-30 12:39:13 +00:00
commit 712b53865f
2 changed files with 6 additions and 1 deletions

View file

@ -114,6 +114,11 @@ impl GlobalState {
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");
for err in self.proc_macro_clients.iter() {
if let Err(err) = err {
format_to!(message, "- {err}\n");
}
}
}
if !self.config.cargo_autoreload()
&& self.is_quiescent()

View file

@ -449,7 +449,7 @@ export class Ctx {
return;
}
if (statusBar.tooltip.value) {
statusBar.tooltip.appendText("\n\n");
statusBar.tooltip.appendMarkdown("\n\n---\n\n");
}
statusBar.tooltip.appendMarkdown("\n\n[Open logs](command:rust-analyzer.openLogs)");
statusBar.tooltip.appendMarkdown(