Clear completion if model doesn't produce any edit (#21925)

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2024-12-12 17:23:22 +01:00 committed by GitHub
parent bcf8a2f9fc
commit b4c8e04544
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -965,7 +965,6 @@ impl inline_completion::InlineCompletionProvider for ZetaInlineCompletionProvide
}
this.update(&mut cx, |this, cx| {
cx.notify();
this.first_pending_completion = None;
if !is_first {
this.last_pending_completion = None;
@ -986,7 +985,11 @@ impl inline_completion::InlineCompletionProvider for ZetaInlineCompletionProvide
});
this.current_completion = Some(new_completion);
}
} else {
this.current_completion = None;
}
cx.notify();
})
});