diff options
author | Blaž Hrastnik | 2021-08-10 01:52:02 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-10 01:52:53 +0000 |
commit | a4564adadd1f77850b92d772e58c6457e14ecc3c (patch) | |
tree | 16e2b1e6080535c5c0d81aceb51c90293519fc83 | |
parent | 0a7add4ad4b0f9838e585b12d8d07f8ed637eb97 (diff) |
fix: Don't crash if language servers time out
-rw-r--r-- | helix-term/src/application.rs | 4 |
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()?; |