Revert "Log an error when there are no buffer snapshots for some LSP version (#22934)" (#23179)

https://github.com/zed-industries/zed/pull/22934#issuecomment-2592239448
and myself had noted quite an increase in junk logging after that:


https://github.com/user-attachments/assets/b678d4ec-c301-4d0e-9a12-99aa7f6da0a2


Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2025-01-15 17:42:41 +02:00 committed by GitHub
parent 74620e611e
commit 0e4a619c9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2012,10 +2012,6 @@ impl LocalLspStore {
snapshots.retain(|snapshot| snapshot.version + OLD_VERSIONS_TO_RETAIN >= version);
Ok(found_snapshot)
} else {
match buffer.read(cx).project_path(cx) {
Some(project_path) => log::error!("No LSP snapshots found for buffer with path {:?}", project_path.path),
None => log::error!("No LSP snapshots found for buffer without a project path (which is also unexpected)"),
}
Ok((buffer.read(cx)).text_snapshot())
}
}