Allow agent edits to be accepted/rejected before the end the turn (#29941)
Release Notes: - N/A
This commit is contained in:
parent
ff215b4f11
commit
55b908a8bf
1 changed files with 0 additions and 12 deletions
|
@ -324,10 +324,6 @@ fn keep_edits_in_ranges(
|
||||||
window: &mut Window,
|
window: &mut Window,
|
||||||
cx: &mut Context<Editor>,
|
cx: &mut Context<Editor>,
|
||||||
) {
|
) {
|
||||||
if thread.read(cx).is_generating() {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let diff_hunks_in_ranges = editor
|
let diff_hunks_in_ranges = editor
|
||||||
.diff_hunks_in_ranges(&ranges, buffer_snapshot)
|
.diff_hunks_in_ranges(&ranges, buffer_snapshot)
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
@ -353,10 +349,6 @@ fn reject_edits_in_ranges(
|
||||||
window: &mut Window,
|
window: &mut Window,
|
||||||
cx: &mut Context<Editor>,
|
cx: &mut Context<Editor>,
|
||||||
) {
|
) {
|
||||||
if thread.read(cx).is_generating() {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let diff_hunks_in_ranges = editor
|
let diff_hunks_in_ranges = editor
|
||||||
.diff_hunks_in_ranges(&ranges, buffer_snapshot)
|
.diff_hunks_in_ranges(&ranges, buffer_snapshot)
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
@ -703,10 +695,6 @@ fn render_diff_hunk_controls(
|
||||||
) -> AnyElement {
|
) -> AnyElement {
|
||||||
let editor = editor.clone();
|
let editor = editor.clone();
|
||||||
|
|
||||||
if thread.read(cx).is_generating() {
|
|
||||||
return Empty.into_any();
|
|
||||||
}
|
|
||||||
|
|
||||||
h_flex()
|
h_flex()
|
||||||
.h(line_height)
|
.h(line_height)
|
||||||
.mr_0p5()
|
.mr_0p5()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue