project panel: Make updates asynchronous (#38881)
Closes #ISSUE Release Notes: - project panel: Revamped how project panel entries are refreshed, which should lead to a significantly smoother experience when working in large projects. --------- Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
This commit is contained in:
co-authored by
Smit Barmase
parent
b5d57598b6
commit
a49b2d5bf8
@@ -2743,6 +2743,7 @@ mod tests {
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
cx.run_until_parked();
|
||||
assert_eq!(cx.update(|cx| cx.windows().len()), 1);
|
||||
let window = cx.update(|cx| cx.windows()[0].downcast::<Workspace>().unwrap());
|
||||
let workspace = window.root(cx).unwrap();
|
||||
@@ -2794,6 +2795,7 @@ mod tests {
|
||||
})
|
||||
.unwrap()
|
||||
.await;
|
||||
cx.run_until_parked();
|
||||
cx.read(|cx| {
|
||||
let workspace = workspace.read(cx);
|
||||
assert_project_panel_selection(
|
||||
@@ -2832,6 +2834,7 @@ mod tests {
|
||||
})
|
||||
.unwrap()
|
||||
.await;
|
||||
cx.run_until_parked();
|
||||
cx.read(|cx| {
|
||||
let workspace = workspace.read(cx);
|
||||
assert_project_panel_selection(
|
||||
@@ -2881,6 +2884,7 @@ mod tests {
|
||||
})
|
||||
.unwrap()
|
||||
.await;
|
||||
cx.run_until_parked();
|
||||
cx.read(|cx| {
|
||||
let workspace = workspace.read(cx);
|
||||
assert_project_panel_selection(
|
||||
@@ -2930,6 +2934,7 @@ mod tests {
|
||||
})
|
||||
.unwrap()
|
||||
.await;
|
||||
cx.run_until_parked();
|
||||
cx.read(|cx| {
|
||||
let workspace = workspace.read(cx);
|
||||
assert_project_panel_selection(workspace, Path::new(path!("/d.txt")), rel_path(""), cx);
|
||||
|
||||
Reference in New Issue
Block a user