Add randomized tests for incremental diff
This commit is contained in:
parent
3a511db5c9
commit
a9871a7a70
5 changed files with 81 additions and 12 deletions
|
@ -78,15 +78,14 @@ impl RefactoringAssistant {
|
|||
}
|
||||
|
||||
let hunks = diff.push_new(&new_text);
|
||||
hunks_tx.send((hunks, new_text)).await?;
|
||||
hunks_tx.send(hunks).await?;
|
||||
}
|
||||
|
||||
hunks_tx.send((diff.finish(), String::new())).await?;
|
||||
hunks_tx.send(diff.finish()).await?;
|
||||
|
||||
anyhow::Ok(())
|
||||
});
|
||||
|
||||
while let Some((hunks, new_text)) = hunks_rx.next().await {
|
||||
while let Some(hunks) = hunks_rx.next().await {
|
||||
editor.update(&mut cx, |editor, cx| {
|
||||
editor.buffer().update(cx, |buffer, cx| {
|
||||
buffer.start_transaction(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue