mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Don't show error when speculatively reloading workspace
This commit is contained in:
parent
a36ff4a100
commit
e6ea395fb0
1 changed files with 6 additions and 4 deletions
|
@ -126,10 +126,12 @@ impl GlobalState {
|
||||||
res.map_err(|err| {
|
res.map_err(|err| {
|
||||||
has_errors = true;
|
has_errors = true;
|
||||||
log::error!("failed to load workspace: {:#}", err);
|
log::error!("failed to load workspace: {:#}", err);
|
||||||
self.show_message(
|
if self.workspaces.is_empty() {
|
||||||
lsp_types::MessageType::Error,
|
self.show_message(
|
||||||
format!("rust-analyzer failed to load workspace: {:#}", err),
|
lsp_types::MessageType::Error,
|
||||||
);
|
format!("rust-analyzer failed to load workspace: {:#}", err),
|
||||||
|
);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.ok()
|
.ok()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue