WIP Start refactoring separation of concerns for repo metadata

Co-Authored-By: Max Brunsfeld <max@zed.dev>
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
Julia 2022-09-30 18:25:25 -04:00
parent 42b7820dbb
commit c95646a298
5 changed files with 73 additions and 148 deletions

View file

@ -1008,9 +1008,7 @@ async fn test_git_head_text(
.unwrap();
// Wait for it to catch up to the new diff
buffer_a
.condition(cx_a, |buffer, _| !buffer.is_recalculating_git_diff())
.await;
executor.run_until_parked();
// Smoke test diffing
buffer_a.read_with(cx_a, |buffer, _| {
@ -1029,7 +1027,8 @@ async fn test_git_head_text(
.await
.unwrap();
//TODO: WAIT FOR REMOTE UPDATES TO FINISH
// Wait remote buffer to catch up to the new diff
executor.run_until_parked();
// Smoke test diffing
buffer_b.read_with(cx_b, |buffer, _| {
@ -1055,9 +1054,7 @@ async fn test_git_head_text(
// TODO: Flush this file event
// Wait for buffer_a to receive it
buffer_a
.condition(cx_a, |buffer, _| !buffer.is_recalculating_git_diff())
.await;
executor.run_until_parked();
// Smoke test new diffing
buffer_a.read_with(cx_a, |buffer, _| {
@ -1071,6 +1068,7 @@ async fn test_git_head_text(
});
//TODO: WAIT FOR REMOTE UPDATES TO FINISH on B
executor.run_until_parked();
// Smoke test B
buffer_b.read_with(cx_b, |buffer, _| {