Also panic on status warnings
This commit is contained in:
parent
25635adc00
commit
235c909b5b
@ -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…
x
Reference in New Issue
Block a user