mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +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()
|
||||
.extract::<lsp_ext::ServerStatusParams>("experimental/serverStatus")
|
||||
.unwrap();
|
||||
if status.health == lsp_ext::Health::Error {
|
||||
panic!("server errored while loading workspace: {:?}", status.message);
|
||||
if status.health != lsp_ext::Health::Ok {
|
||||
panic!("server errored/warned while loading workspace: {:?}", status.message);
|
||||
}
|
||||
status.quiescent
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue