zeta2: Support edit prediction: clear history (#38808)

Release Notes:

- N/A

Co-authored-by: Agus Zubiaga <agus@zed.dev>
This commit is contained in:
Bennet Bo Fenner
2025-09-24 17:44:03 +00:00
committed by GitHub
co-authored by Agus Zubiaga
parent e653cc90c5
commit 6b646e3a14
2 changed files with 12 additions and 0 deletions
@@ -97,6 +97,8 @@ pub fn init(client: Arc<Client>, user_store: Entity<UserStore>, cx: &mut App) {
fn clear_zeta_edit_history(_: &zeta::ClearHistory, cx: &mut App) {
if let Some(zeta) = zeta::Zeta::global(cx) {
zeta.update(cx, |zeta, _| zeta.clear_history());
} else if let Some(zeta) = zeta2::Zeta::try_global(cx) {
zeta.update(cx, |zeta, _| zeta.clear_history());
}
}