Show cargo check failures to the user

This commit is contained in:
Lukas Wirth
2021-10-11 14:09:20 +02:00
parent 079e9fe496
commit d14c9be321
2 changed files with 61 additions and 70 deletions

View File

@@ -394,7 +394,10 @@ impl GlobalState {
flycheck::Progress::DidCancel => (Progress::End, None),
flycheck::Progress::DidFinish(result) => {
if let Err(err) = result {
tracing::error!("cargo check failed: {}", err)
self.show_message(
lsp_types::MessageType::Error,
format!("cargo check failed: {}", err),
);
}
(Progress::End, None)
}