From fb9b4ee842670e95547ea77bdc86fef129f58fbc Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner Date: Wed, 29 Jan 2025 14:00:10 +0100 Subject: [PATCH] edit prediction: Remove zeta codename from action (#23835) Release Notes: - N/A --- crates/zeta/src/zeta.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/zeta/src/zeta.rs b/crates/zeta/src/zeta.rs index e7ee1aa0b5f71aaec25aa3afe0d343e3a74da104..35867f995089769b06eef6c8bafd4a6614d3dc4f 100644 --- a/crates/zeta/src/zeta.rs +++ b/crates/zeta/src/zeta.rs @@ -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); @@ -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; };