aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-08-10 01:52:02 +0000
committerBlaž Hrastnik2021-08-10 01:52:53 +0000
commita4564adadd1f77850b92d772e58c6457e14ecc3c (patch)
tree16e2b1e6080535c5c0d81aceb51c90293519fc83
parent0a7add4ad4b0f9838e585b12d8d07f8ed637eb97 (diff)
fix: Don't crash if language servers time out
-rw-r--r--helix-term/src/application.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 9cd9ee7e..3d59c33a 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -527,7 +527,9 @@ impl Application {
self.event_loop().await;
- self.editor.close_language_servers(None).await?;
+ if self.editor.close_language_servers(None).await.is_err() {
+ log::error!("Timed out waiting for language servers to shutdown");
+ };
self.restore_term()?;