Refactored workspaces API and corrected method headers + fixed bug caused by migration failures

co-authored-by: kay@zed.dev
This commit is contained in:
Mikayla Maki 2022-10-27 16:02:14 -07:00
parent 3451a3c7fe
commit ddecba143f
5 changed files with 12 additions and 38 deletions

View file

@ -14,9 +14,7 @@ fn main() -> anyhow::Result<()> {
let f = File::create(file)?;
drop(f);
let workspace = db.make_new_workspace::<String>(&[]);
db.update_worktrees(&workspace.workspace_id, &["/tmp"]);
let workspace = db.workspace_for_roots(&["/tmp"]);
db.save_dock_pane(SerializedDockPane {
workspace: workspace.workspace_id,