Start on Project::definition
that only works locally (for now)
This commit is contained in:
parent
11a83d01c2
commit
cbbf7391e8
3 changed files with 176 additions and 12 deletions
|
@ -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?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue