zeta2: Support edit prediction: clear history (#38808)
Release Notes: - N/A Co-authored-by: Agus Zubiaga <agus@zed.dev>
This commit is contained in:
co-authored by
Agus Zubiaga
parent
e653cc90c5
commit
6b646e3a14
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user