mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 10:04:23 +00:00
Don't show error when speculatively reloading workspace
This commit is contained in:
parent
a36ff4a100
commit
e6ea395fb0
@ -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 New Issue
Block a user