This commit is contained in:
K Simmons
2022-12-03 16:04:10 -08:00
committed by Mikayla Maki
parent b48e28b555
commit 0c466f806c
10 changed files with 302 additions and 45 deletions
+1
View File
@@ -18,6 +18,7 @@ test-support = [
]
[dependencies]
db = { path = "../db" }
call = { path = "../call" }
client = { path = "../client" }
collections = { path = "../collections" }
+5 -1
View File
@@ -137,7 +137,11 @@ pub struct Dock {
}
impl Dock {
pub fn new(cx: &mut ViewContext<Workspace>, default_item_factory: DefaultItemFactory) -> Self {
pub fn new(
serialized_pane: SerializedPane,
default_item_factory: DefaultItemFactory,
cx: &mut ViewContext<Workspace>,
) -> Self {
let anchor = cx.global::<Settings>().default_dock_anchor;
let pane = cx.add_view(|cx| Pane::new(Some(anchor), cx));
pane.update(cx, |pane, cx| {
+1
View File
@@ -1110,6 +1110,7 @@ enum FollowerItem {
impl Workspace {
pub fn new(
serialized_workspace: SerializedWorkspace,
project: ModelHandle<Project>,
dock_default_factory: DefaultItemFactory,
cx: &mut ViewContext<Self>,