minor: Silence noisy language server not found error in log

allowlist
Blaž Hrastnik 5 months ago
parent cb25d13028
commit 83f09ecbff

@ -1238,12 +1238,19 @@ impl Editor {
.filter_map(|(lang, client)| match client { .filter_map(|(lang, client)| match client {
Ok(client) => Some((lang, client)), Ok(client) => Some((lang, client)),
Err(err) => { Err(err) => {
if let helix_lsp::Error::ExecutableNotFound(err) = err {
// Silence by default since some language servers might just not be installed
log::debug!(
"Language server not found for `{}` {} {}", language.scope(), lang, err,
);
} else {
log::error!( log::error!(
"Failed to initialize the language servers for `{}` - `{}` {{ {} }}", "Failed to initialize the language servers for `{}` - `{}` {{ {} }}",
language.scope(), language.scope(),
lang, lang,
err err
); );
}
None None
} }
}) })

Loading…
Cancel
Save