Introduce "Keep All" and "Reject All" buttons when reviewing assistant edits (#27724)

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2025-03-29 10:28:11 +01:00 committed by GitHub
parent 8add90d7cb
commit 7fe6188f8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 183 additions and 30 deletions

View file

@ -11,6 +11,7 @@ pub(crate) mod windows_only_instance;
use anyhow::Context as _;
pub use app_menus::*;
use assets::Assets;
use assistant2::AssistantDiffToolbar;
use assistant_context_editor::AssistantPanelDelegate;
use breadcrumbs::Breadcrumbs;
use client::{zed_urls, ZED_URL_SCHEME};
@ -939,6 +940,8 @@ fn initialize_pane(
toolbar.add_item(migration_banner, window, cx);
let project_diff_toolbar = cx.new(|cx| ProjectDiffToolbar::new(workspace, cx));
toolbar.add_item(project_diff_toolbar, window, cx);
let assistant_diff_toolbar = cx.new(|cx| AssistantDiffToolbar::new(workspace, cx));
toolbar.add_item(assistant_diff_toolbar, window, cx);
})
});
}