Rename remaining mentions of "inline completion" to "edit prediction" (#35512)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-08-04 10:22:18 -06:00 committed by GitHub
parent 85885723a9
commit 65018c28c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 480 additions and 498 deletions

View file

@ -16,9 +16,9 @@ doctest = false
anyhow.workspace = true
client.workspace = true
collections.workspace = true
edit_prediction.workspace = true
futures.workspace = true
gpui.workspace = true
inline_completion.workspace = true
language.workspace = true
log.workspace = true
postage.workspace = true

View file

@ -1,8 +1,8 @@
use crate::{Supermaven, SupermavenCompletionStateId};
use anyhow::Result;
use edit_prediction::{Direction, EditPrediction, EditPredictionProvider};
use futures::StreamExt as _;
use gpui::{App, Context, Entity, EntityId, Task};
use inline_completion::{Direction, EditPredictionProvider, InlineCompletion};
use language::{Anchor, Buffer, BufferSnapshot};
use project::Project;
use std::{
@ -44,7 +44,7 @@ fn completion_from_diff(
completion_text: &str,
position: Anchor,
delete_range: Range<Anchor>,
) -> InlineCompletion {
) -> EditPrediction {
let buffer_text = snapshot
.text_for_range(delete_range.clone())
.collect::<String>();
@ -91,7 +91,7 @@ fn completion_from_diff(
edits.push((edit_range, edit_text));
}
InlineCompletion {
EditPrediction {
id: None,
edits,
edit_preview: None,
@ -182,7 +182,7 @@ impl EditPredictionProvider for SupermavenCompletionProvider {
buffer: &Entity<Buffer>,
cursor_position: Anchor,
cx: &mut Context<Self>,
) -> Option<InlineCompletion> {
) -> Option<EditPrediction> {
let completion_text = self
.supermaven
.read(cx)