Allow agent edits to be accepted/rejected before the end the turn (#29941)

Release Notes:

- N/A
This commit is contained in:
Nathan Sobo
2025-05-05 14:25:34 -06:00
committed by GitHub
parent ff215b4f11
commit 55b908a8bf
-12
View File
@@ -324,10 +324,6 @@ fn keep_edits_in_ranges(
window: &mut Window,
cx: &mut Context<Editor>,
) {
if thread.read(cx).is_generating() {
return;
}
let diff_hunks_in_ranges = editor
.diff_hunks_in_ranges(&ranges, buffer_snapshot)
.collect::<Vec<_>>();
@@ -353,10 +349,6 @@ fn reject_edits_in_ranges(
window: &mut Window,
cx: &mut Context<Editor>,
) {
if thread.read(cx).is_generating() {
return;
}
let diff_hunks_in_ranges = editor
.diff_hunks_in_ranges(&ranges, buffer_snapshot)
.collect::<Vec<_>>();
@@ -703,10 +695,6 @@ fn render_diff_hunk_controls(
) -> AnyElement {
let editor = editor.clone();
if thread.read(cx).is_generating() {
return Empty.into_any();
}
h_flex()
.h(line_height)
.mr_0p5()