Rename remaining mentions of "inline completion" to "edit prediction" (#35512)
Release Notes: - N/A
This commit is contained in:
parent
85885723a9
commit
65018c28c0
43 changed files with 480 additions and 498 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue