Handle buffer diff base updates and file renames properly for SSH projects (#14989)
Release Notes: - N/A --------- Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
@@ -273,7 +273,7 @@ async fn open_buffer(
|
||||
) -> Box<dyn ItemHandle> {
|
||||
let project = workspace.update(cx, |workspace, _| workspace.project().clone());
|
||||
let worktree_id = project.update(cx, |project, cx| {
|
||||
let worktree = project.worktrees().last().expect("worktree not found");
|
||||
let worktree = project.worktrees(cx).last().expect("worktree not found");
|
||||
worktree.read(cx).id()
|
||||
});
|
||||
let project_path = ProjectPath {
|
||||
|
||||
Reference in New Issue
Block a user