Set server status to warning when proc-macro sources change

This commit is contained in:
Lukas Wirth
2021-10-20 15:29:50 +02:00
parent bed6eae304
commit 1d80302b76
3 changed files with 18 additions and 2 deletions

View File

@@ -66,6 +66,11 @@ impl GlobalState {
message: None,
};
if self.proc_macro_changed {
status.health = lsp_ext::Health::Warning;
status.message =
Some("Reload required due to source changes of a procedural macro.".into())
}
if let Some(error) = self.fetch_build_data_error() {
status.health = lsp_ext::Health::Warning;
status.message = Some(error)