aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorBlaž Hrastnik2024-01-24 07:00:21 +0000
committerBlaž Hrastnik2024-01-24 07:00:21 +0000
commit83f09ecbff5160e4350c8099be1ad4c64513f665 (patch)
tree61a2caa9d318fa723da5cba90318529011dea533 /helix-view
parentcb25d13028ec1cdf986a3567ea52562ea654a7b8 (diff)
minor: Silence noisy language server not found error in log
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs19
1 files changed, 13 insertions, 6 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index f605cbb5..eca488e7 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -1238,12 +1238,19 @@ impl Editor {
.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
}
})