mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Merge #5304
5304: Don't show error when speculatively reloading workspace r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
539659cde3
1 changed files with 6 additions and 4 deletions
|
@ -126,10 +126,12 @@ impl GlobalState {
|
|||
res.map_err(|err| {
|
||||
has_errors = true;
|
||||
log::error!("failed to load workspace: {:#}", err);
|
||||
self.show_message(
|
||||
lsp_types::MessageType::Error,
|
||||
format!("rust-analyzer failed to load workspace: {:#}", err),
|
||||
);
|
||||
if self.workspaces.is_empty() {
|
||||
self.show_message(
|
||||
lsp_types::MessageType::Error,
|
||||
format!("rust-analyzer failed to load workspace: {:#}", err),
|
||||
);
|
||||
}
|
||||
})
|
||||
.ok()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue