zeta2: Predict at next diagnostic location (#43257)

When no predictions are available for the current buffer, we will now
attempt to predict at the closest diagnostic from the cursor location
that wasn't included in the last prediction request. This enables a
commonly desired kind of far-away jump without requiring explicit model
support.

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga
2025-11-21 16:39:08 +00:00
committed by GitHub
parent a3cbe1a554
commit 4fb671f4eb
11 changed files with 537 additions and 255 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ impl EditPredictionProvider for CodestralCompletionProvider {
Self::api_key(cx).is_some()
}
fn is_refreshing(&self) -> bool {
fn is_refreshing(&self, _cx: &App) -> bool {
self.pending_request.is_some()
}