Start on Project::definition that only works locally (for now)

This commit is contained in:
Antonio Scandurra
2022-01-20 12:11:41 +01:00
parent 11a83d01c2
commit cbbf7391e8
3 changed files with 176 additions and 12 deletions
+1 -1
View File
@@ -684,7 +684,7 @@ impl Workspace {
cx: &mut ViewContext<Self>,
) -> Task<Result<ProjectPath>> {
let entry = self.project().update(cx, |project, cx| {
project.worktree_for_abs_path(abs_path, cx)
project.find_or_create_worktree_for_abs_path(abs_path, cx)
});
cx.spawn(|_, cx| async move {
let (worktree, path) = entry.await?;