mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 19:17:12 +00:00
Show when build scripts fail what the errors were
This commit is contained in:
parent
d426cbee76
commit
8f2713564a
1 changed files with 3 additions and 2 deletions
|
|
@ -139,9 +139,10 @@ impl GlobalState {
|
||||||
"Proc-macros and/or build scripts have changed and need to be rebuilt.\n\n",
|
"Proc-macros and/or build scripts have changed and need to be rebuilt.\n\n",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if self.fetch_build_data_error().is_err() {
|
if let Err(build_data_err) = self.fetch_build_data_error() {
|
||||||
status.health |= lsp_ext::Health::Warning;
|
status.health |= lsp_ext::Health::Error;
|
||||||
message.push_str("Failed to run build scripts of some packages.\n\n");
|
message.push_str("Failed to run build scripts of some packages.\n\n");
|
||||||
|
format_to!(message, "{build_data_err}\n");
|
||||||
}
|
}
|
||||||
if let Some(err) = &self.config_errors {
|
if let Some(err) = &self.config_errors {
|
||||||
status.health |= lsp_ext::Health::Warning;
|
status.health |= lsp_ext::Health::Warning;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue