Skip to content

Commit

Permalink
edit prediction: Remove zeta codename from action (zed-industries#23835)
Browse files Browse the repository at this point in the history
Release Notes:

- N/A
  • Loading branch information
bennetbo authored Jan 29, 2025
1 parent 07161d6 commit fb9b4ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/zeta/src/zeta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const EDITABLE_REGION_START_MARKER: &'static str = "<|editable_region_start|>";
const EDITABLE_REGION_END_MARKER: &'static str = "<|editable_region_end|>";
const BUFFER_CHANGE_GROUPING_INTERVAL: Duration = Duration::from_secs(1);

actions!(zeta, [ClearHistory]);
actions!(edit_prediction, [ClearHistory]);

#[derive(Copy, Clone, Default, Debug, PartialEq, Eq, Hash)]
pub struct InlineCompletionId(Uuid);
Expand Down Expand Up @@ -1067,7 +1067,11 @@ impl inline_completion::InlineCompletionProvider for ZetaInlineCompletionProvide
}
Err(error) => Err(error),
};
let Some(new_completion) = completion.log_err().flatten() else {
let Some(new_completion) = completion
.context("edit prediction failed")
.log_err()
.flatten()
else {
return;
};

Expand Down

0 comments on commit fb9b4ee

Please sign in to comment.