Fix confusion between canonical vs non-canonical paths when rescanning, expanding paths

This commit is contained in:
Max Brunsfeld 2023-06-16 11:53:05 -07:00
parent 3c06bd056a
commit 1b71589514
2 changed files with 87 additions and 47 deletions

View file

@ -369,7 +369,14 @@ async fn test_rescan_with_gitignore(cx: &mut TestAppContext) {
.unwrap();
cx.read(|cx| tree.read(cx).as_local().unwrap().scan_complete())
.await;
tree.flush_fs_events(cx).await;
tree.update(cx, |tree, cx| {
let tree = tree.as_local_mut().unwrap();
tree.expand_dir(tree.entry_for_path("ignored-dir").unwrap().id, cx)
})
.recv()
.await;
cx.read(|cx| {
let tree = tree.read(cx);
assert!(