Replace build_workspace fn with an initialize function that takes a workspace
This makes it clearer that the function is not providing necessary dependencies to a workspace, but rather configuring it with all of the panels and widgets which are defined in downstream crates.
This commit is contained in:
parent
9e47e19f4e
commit
c4554c1720
6 changed files with 125 additions and 115 deletions
|
@ -6598,7 +6598,7 @@ mod tests {
|
|||
themes: ThemeRegistry::new((), cx.font_cache()),
|
||||
fs: FakeFs::new(cx.background()),
|
||||
build_window_options: || Default::default(),
|
||||
build_workspace: |_, _, _| unimplemented!(),
|
||||
initialize_workspace: |_, _, _| unimplemented!(),
|
||||
});
|
||||
|
||||
Channel::init(&client);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue