Skip to content

Commit 712b538

Browse files
committed
Auto merge of rust-lang#15359 - Veykril:proc-macro-srv-spawn-err, r=Veykril
Write proc-macro server spawn errors to the status text
2 parents ebcd25d + bd6ec06 commit 712b538

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

crates/rust-analyzer/src/reload.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ impl GlobalState {
114114
if self.proc_macro_clients.iter().any(|it| it.is_err()) {
115115
status.health = lsp_ext::Health::Warning;
116116
message.push_str("Failed to spawn one or more proc-macro servers.\n\n");
117+
for err in self.proc_macro_clients.iter() {
118+
if let Err(err) = err {
119+
format_to!(message, "- {err}\n");
120+
}
121+
}
117122
}
118123
if !self.config.cargo_autoreload()
119124
&& self.is_quiescent()

editors/code/src/ctx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export class Ctx {
449449
return;
450450
}
451451
if (statusBar.tooltip.value) {
452-
statusBar.tooltip.appendText("\n\n");
452+
statusBar.tooltip.appendMarkdown("\n\n---\n\n");
453453
}
454454
statusBar.tooltip.appendMarkdown("\n\n[Open logs](command:rust-analyzer.openLogs)");
455455
statusBar.tooltip.appendMarkdown(

0 commit comments

Comments
 (0)