aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorwojciechkepka2021-06-19 03:14:40 +0000
committerBlaž Hrastnik2021-06-19 04:02:56 +0000
commitc5a2fd5da394b5b16695af9f2eb437e29be010f0 (patch)
treee7614ad9152ad7e29b8b882352559d1a410f7928 /helix-term/src
parentdd0af78079342b46ae1f4d1b265c7e0cd7519631 (diff)
Add `close_language_servers` method on `Editor`
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/application.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 1f02ac4f..2fae467f 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -406,16 +406,7 @@ impl Application {
self.event_loop().await;
- tokio::time::timeout(
- Duration::from_millis(500),
- future::join_all(
- self.editor
- .language_servers
- .iter_clients()
- .map(|client| client.force_shutdown()),
- ),
- )
- .await;
+ self.editor.close_language_servers(None).await;
// reset cursor shape
write!(stdout, "\x1B[2 q");