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