If paths from edit steps omit worktree root, search worktrees for relative path (#15543)
Release Notes: - N/A Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan
parent
3c404dec92
commit
fef95110bb
@@ -528,7 +528,7 @@ impl EditOperation {
|
||||
let buffer = project
|
||||
.update(&mut cx, |project, cx| {
|
||||
let project_path = project
|
||||
.project_path_for_full_path(Path::new(&path), cx)
|
||||
.find_project_path(Path::new(&path), cx)
|
||||
.with_context(|| format!("worktree not found for {:?}", path))?;
|
||||
anyhow::Ok(project.open_buffer(project_path, cx))
|
||||
})??
|
||||
|
||||
Reference in New Issue
Block a user