Add check for if the user wants a blanks workspace when deserializing
This commit is contained in:
parent
82397f34d1
commit
db3119b553
3 changed files with 20 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue