Write proc-macro server spawn errors to the status text

This commit is contained in:
Lukas Wirth 2023-07-30 14:35:20 +02:00
parent f442c4aad6
commit bd6ec06237
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(