Merge branch 'main' into window_context_2
This commit is contained in:
commit
33bc47dbe2
53 changed files with 3951 additions and 2474 deletions
|
@ -1304,10 +1304,8 @@ impl Workspace {
|
|||
RemoveWorktreeFromProject(worktree_id): &RemoveWorktreeFromProject,
|
||||
cx: &mut ViewContext<Self>,
|
||||
) {
|
||||
let future = self
|
||||
.project
|
||||
self.project
|
||||
.update(cx, |project, cx| project.remove_worktree(*worktree_id, cx));
|
||||
cx.foreground().spawn(future).detach();
|
||||
}
|
||||
|
||||
fn project_path_for_path(
|
||||
|
@ -3274,9 +3272,7 @@ mod tests {
|
|||
);
|
||||
|
||||
// Remove a project folder
|
||||
project
|
||||
.update(cx, |project, cx| project.remove_worktree(worktree_id, cx))
|
||||
.await;
|
||||
project.update(cx, |project, cx| project.remove_worktree(worktree_id, cx));
|
||||
assert_eq!(
|
||||
cx.current_window_title(window_id).as_deref(),
|
||||
Some("one.txt — root2")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue