mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Also panic on status warnings
This commit is contained in:
parent
25635adc00
commit
235c909b5b
1 changed files with 2 additions and 2 deletions
|
@ -255,8 +255,8 @@ impl Server {
|
||||||
.clone()
|
.clone()
|
||||||
.extract::<lsp_ext::ServerStatusParams>("experimental/serverStatus")
|
.extract::<lsp_ext::ServerStatusParams>("experimental/serverStatus")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
if status.health == lsp_ext::Health::Error {
|
if status.health != lsp_ext::Health::Ok {
|
||||||
panic!("server errored while loading workspace: {:?}", status.message);
|
panic!("server errored/warned while loading workspace: {:?}", status.message);
|
||||||
}
|
}
|
||||||
status.quiescent
|
status.quiescent
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue