mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +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| {
|
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…
Reference in a new issue