Skip to content

Commit 25635ad

Browse files
committed
Show proc-macro spawn errors as status notification warnings
1 parent 6644fe3 commit 25635ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/rust-analyzer/src/reload.rs

+4
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ impl GlobalState {
108108
status.health = lsp_ext::Health::Warning;
109109
message.push_str("Failed to run build scripts of some packages.\n\n");
110110
}
111+
if self.proc_macro_clients.iter().any(|it| it.is_err()) {
112+
status.health = lsp_ext::Health::Warning;
113+
message.push_str("Failed to spawn one or more proc-macro servers.\n\n");
114+
}
111115
if !self.config.cargo_autoreload()
112116
&& self.is_quiescent()
113117
&& self.fetch_workspaces_queue.op_requested()

0 commit comments

Comments
 (0)