Change the definition of check_invariants
- On the host, ensure that only one worktree can exist for a given absolute path. Asserting about buffers was cool but I think should be tackled in the context of leaning more on entry ids for collaboration (vs. buffer ids). - On the guest, ensure that all the opened buffers don't contain deferred operations.
This commit is contained in:
@@ -4293,6 +4293,12 @@ mod tests {
|
||||
);
|
||||
}
|
||||
|
||||
guest_client
|
||||
.project
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.read_with(&guest_cx, |project, cx| project.check_invariants(cx));
|
||||
|
||||
for guest_buffer in &guest_client.buffers {
|
||||
let buffer_id = guest_buffer.read_with(&guest_cx, |buffer, _| buffer.remote_id());
|
||||
let host_buffer = host_project.read_with(&host_cx, |project, cx| {
|
||||
|
||||
Reference in New Issue
Block a user