agent: Add the single_file_review
setting to the UI (#29859)
Release Notes: - agent: Add the `single_file_review` setting to the UI
This commit is contained in:
parent
9c11d24887
commit
425f32e068
2 changed files with 88 additions and 36 deletions
|
@ -433,6 +433,14 @@ impl AssistantSettingsContent {
|
|||
.ok();
|
||||
}
|
||||
|
||||
pub fn set_single_file_review(&mut self, allow: bool) {
|
||||
self.v2_setting(|setting| {
|
||||
setting.single_file_review = Some(allow);
|
||||
Ok(())
|
||||
})
|
||||
.ok();
|
||||
}
|
||||
|
||||
pub fn set_profile(&mut self, profile_id: AgentProfileId) {
|
||||
self.v2_setting(|setting| {
|
||||
setting.default_profile = Some(profile_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue