aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-25 16:22:01 +0000
committerDmitry Sharshakov2021-08-25 16:22:01 +0000
commitc7759a5aa0b5381e0a71ba58f3f7a5f7d98c9777 (patch)
tree66fe309913b5d7fad40e21def56b724cabc61127 /helix-lsp
parent4ee66b876613c3d2c06945520e0c5e392d9315d1 (diff)
parent44a0512d951806cc98ab30ccc73009ba2631e42f (diff)
Merge remote-tracking branch 'origin/master' into debug
Diffstat (limited to 'helix-lsp')
-rw-r--r--helix-lsp/src/transport.rs20
1 files changed, 14 insertions, 6 deletions
diff --git a/helix-lsp/src/transport.rs b/helix-lsp/src/transport.rs
index 0710b449..5be694c8 100644
--- a/helix-lsp/src/transport.rs
+++ b/helix-lsp/src/transport.rs
@@ -222,10 +222,13 @@ impl Transport {
loop {
match Self::recv_server_message(&mut server_stdout, &mut recv_buffer).await {
Ok(msg) => {
- transport
- .process_server_message(&client_tx, msg)
- .await
- .unwrap();
+ match transport.process_server_message(&client_tx, msg).await {
+ Ok(_) => {}
+ Err(err) => {
+ error!("err: <- {:?}", err);
+ break;
+ }
+ };
}
Err(err) => {
error!("err: <- {:?}", err);
@@ -254,10 +257,15 @@ impl Transport {
mut client_rx: UnboundedReceiver<Payload>,
) {
while let Some(msg) = client_rx.recv().await {
- transport
+ match transport
.send_payload_to_server(&mut server_stdin, msg)
.await
- .unwrap()
+ {
+ Ok(_) => {}
+ Err(err) => {
+ error!("err: <- {:?}", err);
+ }
+ }
}
}
}