zeta_cli: Avoid unnecessary rechecks in retrieval-stats (#39267)

Before this change, it would save every buffer and wait for diagnostics.
For rust analyzer this would cause a lot of rechecking and greatly slow
down the analysis

Release Notes:

- N/A

Co-authored-by: Agus <agus@zed.dev>
This commit is contained in:
Michael Sloan
2025-10-01 06:31:27 +00:00
committed by GitHub
co-authored by Agus
parent 1659fb81e7
commit c61409e577
2 changed files with 127 additions and 23 deletions
@@ -35,6 +35,10 @@ use crate::outline::declarations_in_buffer;
//
// * Send multiple selected excerpt ranges. Challenge is that excerpt ranges influence which
// references are present and their scores.
//
// * Include single-file worktrees / non visible worktrees? E.g. go to definition that resolves to a
// file in a build dependency. Should not be editable in that case - but how to distinguish the case
// where it should be editable?
// Potential future optimizations:
//