mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
minor: Silence noisy language server not found error in log
This commit is contained in:
parent
cb25d13028
commit
83f09ecbff
@ -1238,12 +1238,19 @@ fn launch_language_servers(&mut self, doc_id: DocumentId) {
|
||||
.filter_map(|(lang, client)| match client {
|
||||
Ok(client) => Some((lang, client)),
|
||||
Err(err) => {
|
||||
log::error!(
|
||||
"Failed to initialize the language servers for `{}` - `{}` {{ {} }}",
|
||||
language.scope(),
|
||||
lang,
|
||||
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!(
|
||||
"Failed to initialize the language servers for `{}` - `{}` {{ {} }}",
|
||||
language.scope(),
|
||||
lang,
|
||||
err
|
||||
);
|
||||
}
|
||||
None
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user