on master help sign in
lsp: Don't panic if init fails
d31bef7Blaž Hrastnik
helix-lsp/src/lib.rs+4−1
@@ -337,7 +337,10 @@ impl Registry {
337 })
337 })
338 .await;
338 .await;
339
339
340+ if let Err(e) = value {
340− value.expect("failed to initialize capabilities");
341+ log::error!("failed to initialize language server: {}", e);
342+ return;
343+ }
341
344
342 // next up, notify<initialized>
345 // next up, notify<initialized>
343 _client
346 _client