Add check for if the user wants a blanks workspace when deserializing

This commit is contained in:
Mikayla Maki 2022-12-12 12:25:52 -08:00
parent 82397f34d1
commit db3119b553
3 changed files with 20 additions and 8 deletions

View file

@ -765,7 +765,7 @@ mod tests {
#[gpui::test]
async fn test_new_empty_workspace(cx: &mut TestAppContext) {
let app_state = init(cx);
cx.update(|cx| open_new(&app_state, cx)).await;
cx.update(|cx| open_new(&app_state, true, cx)).await;
let window_id = *cx.window_ids().first().unwrap();
let workspace = cx.root_view::<Workspace>(window_id).unwrap();