Return proper items on workspace restoration.
co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
106064c734
commit
0c6f103899
4 changed files with 243 additions and 135 deletions
|
@ -462,7 +462,6 @@ mod tests {
|
|||
|
||||
let (_, _workspace) = cx.add_window(|cx| {
|
||||
Workspace::new(
|
||||
Some(serialized_workspace),
|
||||
0,
|
||||
project.clone(),
|
||||
Arc::new(AppState {
|
||||
|
@ -480,6 +479,11 @@ mod tests {
|
|||
)
|
||||
});
|
||||
|
||||
cx.update(|cx| {
|
||||
Workspace::load_workspace(_workspace.downgrade(), serialized_workspace, Vec::new(), cx)
|
||||
})
|
||||
.await;
|
||||
|
||||
cx.foreground().run_until_parked();
|
||||
//Should terminate
|
||||
}
|
||||
|
@ -605,7 +609,6 @@ mod tests {
|
|||
let project = Project::test(fs, [], cx).await;
|
||||
let (window_id, workspace) = cx.add_window(|cx| {
|
||||
Workspace::new(
|
||||
None,
|
||||
0,
|
||||
project.clone(),
|
||||
Arc::new(AppState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue