chore: Wrap WorkspaceId in newtype (#9492)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-03-18 12:39:03 +01:00 committed by GitHub
parent 07dbee8651
commit f60774bbdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 67 additions and 24 deletions

View file

@ -30,7 +30,7 @@ use std::{
},
};
use text::Point;
use workspace::Workspace;
use workspace::{Workspace, WorkspaceId};
#[gpui::test(iterations = 10)]
async fn test_host_disconnect(
@ -73,8 +73,14 @@ async fn test_host_disconnect(
assert!(worktree_a.read_with(cx_a, |tree, _| tree.as_local().unwrap().is_shared()));
let workspace_b =
cx_b.add_window(|cx| Workspace::new(0, project_b.clone(), client_b.app_state.clone(), cx));
let workspace_b = cx_b.add_window(|cx| {
Workspace::new(
WorkspaceId::default(),
project_b.clone(),
client_b.app_state.clone(),
cx,
)
});
let cx_b = &mut VisualTestContext::from_window(*workspace_b, cx_b);
let workspace_b_view = workspace_b.root_view(cx_b).unwrap();