Also panic on status warnings

This commit is contained in:
Lukas Wirth 2023-04-04 19:25:57 +02:00
parent 25635adc00
commit 235c909b5b

View File

@ -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
}