Avoid finalizing transactions inside Buffer::apply_diff
This commit is contained in:
parent
ff85bc6d42
commit
7faa0da5c7
3 changed files with 10 additions and 13 deletions
|
@ -254,7 +254,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_force(format_diff, cx);
|
||||
buffer.apply_non_conflicting_portion_of_diff(format_diff, cx);
|
||||
|
||||
// The outcome depends on the order of concurrent taks.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue