lsp: Don't log "LSP not defined" errors in the logfile

pull/3663/head
Blaž Hrastnik 2 years ago
parent e917a8e0be
commit 1caba2d3e8
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

@ -356,7 +356,11 @@ impl Registry {
.await;
if let Err(e) = value {
log::error!("failed to initialize language server: {}", e);
if let Error::LspNotDefined = e {
// Skip logging "lsp not defined"
} else {
log::error!("failed to initialize language server: {}", e);
}
return;
}

Loading…
Cancel
Save