Unnamed repository; edit this file 'description' to name the repository.
Write proc-macro server spawn errors to the status text
Lukas Wirth 2023-07-30
parent f442c4a · commit bd6ec06
-rw-r--r--crates/rust-analyzer/src/reload.rs5
-rw-r--r--editors/code/src/ctx.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs
index 18d9151d4a..0a2bb82247 100644
--- a/crates/rust-analyzer/src/reload.rs
+++ b/crates/rust-analyzer/src/reload.rs
@@ -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()
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts
index ac144cbebb..72d8109bc8 100644
--- a/editors/code/src/ctx.ts
+++ b/editors/code/src/ctx.ts
@@ -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(