Improve prompt caching for edit prediction (#23061)

This is achieved by halving the number of events instead of popping the
front.

Release Notes:

- N/A

Co-authored-by: Thorsten <thorsten@zed.dev>
f2ab00cec7Antonio Scandurra committed on 1/13/2025, 10:58:49 AM· committed by GitHubparente084848
1 file changedLine totals unavailable