diff --git a/crates/zeta/src/zeta.rs b/crates/zeta/src/zeta.rs index 074be523bb..99fae6600f 100644 --- a/crates/zeta/src/zeta.rs +++ b/crates/zeta/src/zeta.rs @@ -1349,6 +1349,17 @@ impl inline_completion::InlineCompletionProvider for ZetaInlineCompletionProvide return; } + if let Some(current_completion) = self.current_completion.as_ref() { + let snapshot = buffer.read(cx).snapshot(); + if current_completion + .completion + .interpolate(&snapshot) + .is_some() + { + return; + } + } + let pending_completion_id = self.next_pending_completion_id; self.next_pending_completion_id += 1;