mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
lsp: Don't panic if init fails
We correctly filter out the language server inside Document to ignore it if the capabilities are missing, so this way it'll simply ignore the errored out LSP rather than panicking.
This commit is contained in:
parent
01f7a312d0
commit
d31bef7fea
@ -337,7 +337,10 @@ pub fn get(&mut self, language_config: &LanguageConfiguration) -> Result<Arc<Cli
|
||||
})
|
||||
.await;
|
||||
|
||||
value.expect("failed to initialize capabilities");
|
||||
if let Err(e) = value {
|
||||
log::error!("failed to initialize language server: {}", e);
|
||||
return;
|
||||
}
|
||||
|
||||
// next up, notify<initialized>
|
||||
_client
|
||||
|
Loading…
Reference in New Issue
Block a user