mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 06:59:22 +01:00
1ab8b9abfb
## Summary `print_report` sorted the inserted and deleted token counts separately, then added them by rank, so "Total tokens" percentiles mixed counts from different predictions. It now adds each prediction's counts before sorting. ## Testing - `token_totals_are_summed_per_prediction` checks the sorted totals. It fails without the fix. - `cargo test -p edit_prediction_cli` and `./script/clippy` pass. ## Self-review - [x] I've reviewed my diff for quality, security, reliability, and performance. - [x] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [x] Tests cover the new or changed behavior. Release Notes: - N/A