Fix confusion between canonical vs non-canonical paths when rescanning, expanding paths
This commit is contained in:
parent
3c06bd056a
commit
1b71589514
2 changed files with 87 additions and 47 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue