Allow reviewing of agent changes without Git (#27668)
Release Notes: - N/A
This commit is contained in:
parent
8a307e7b89
commit
94ed0b7767
27 changed files with 2271 additions and 1095 deletions
|
@ -374,7 +374,7 @@ async fn test_apply_diff(cx: &mut TestAppContext) {
|
|||
|
||||
let diff = buffer.update(cx, |b, cx| b.diff(text.clone(), cx)).await;
|
||||
buffer.update(cx, |buffer, cx| {
|
||||
buffer.apply_diff(diff, cx).unwrap();
|
||||
buffer.apply_diff(diff, true, cx).unwrap();
|
||||
assert_eq!(buffer.text(), text);
|
||||
let actual_offsets = anchors
|
||||
.iter()
|
||||
|
@ -388,7 +388,7 @@ async fn test_apply_diff(cx: &mut TestAppContext) {
|
|||
|
||||
let diff = buffer.update(cx, |b, cx| b.diff(text.clone(), cx)).await;
|
||||
buffer.update(cx, |buffer, cx| {
|
||||
buffer.apply_diff(diff, cx).unwrap();
|
||||
buffer.apply_diff(diff, true, cx).unwrap();
|
||||
assert_eq!(buffer.text(), text);
|
||||
let actual_offsets = anchors
|
||||
.iter()
|
||||
|
@ -433,7 +433,7 @@ async fn test_normalize_whitespace(cx: &mut gpui::TestAppContext) {
|
|||
let format_diff = format.await;
|
||||
buffer.update(cx, |buffer, cx| {
|
||||
let version_before_format = format_diff.base_version.clone();
|
||||
buffer.apply_diff(format_diff, cx);
|
||||
buffer.apply_diff(format_diff, true, cx);
|
||||
|
||||
// The outcome depends on the order of concurrent tasks.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue