From 0e4a619c9fe5c05378fe449e955136b24d9c78b1 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Wed, 15 Jan 2025 17:42:41 +0200 Subject: [PATCH] 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 --- crates/project/src/lsp_store.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/project/src/lsp_store.rs b/crates/project/src/lsp_store.rs index a7afdc6637..372f06bbf6 100644 --- a/crates/project/src/lsp_store.rs +++ b/crates/project/src/lsp_store.rs @@ -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()) } }