lsp: Fix noisy logs when starting language servers (#17713)

We would log every time we'd lookup a language server for a file and
we'd also log "starting language server" even though we were about to
only download it and not start it.


Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-09-11 12:56:39 -04:00 committed by GitHub
parent 13c553c50f
commit b5c42edf1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 11 deletions

View file

@ -833,7 +833,7 @@ impl LanguageRegistry {
) -> Option<PendingLanguageServer> {
let server_id = self.state.write().next_language_server_id();
log::info!(
"starting language server {:?}, path: {root_path:?}, id: {server_id}",
"attempting to start language server {:?}, path: {root_path:?}, id: {server_id}",
adapter.name.0
);