mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Write proc-macro server spawn errors to the status text
This commit is contained in:
parent
f442c4aad6
commit
bd6ec06237
@ -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()
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user