Clean up RelPath API (#38912)
Consolidate constructors and accessors. Release Notes: - N/A --------- Co-authored-by: Cole Miller <cole@zed.dev>
This commit is contained in:
co-authored by
Cole Miller
parent
301e976465
commit
495a7b0a84
@@ -1669,8 +1669,9 @@ fn open_local_file(
|
||||
cx.spawn_in(window, async move |workspace, cx| {
|
||||
// Check if the file actually exists on disk (even if it's excluded from worktree)
|
||||
let file_exists = {
|
||||
let full_path = worktree
|
||||
.read_with(cx, |tree, _| tree.abs_path().join(settings_relative_path))?;
|
||||
let full_path = worktree.read_with(cx, |tree, _| {
|
||||
tree.abs_path().join(settings_relative_path.as_std_path())
|
||||
})?;
|
||||
|
||||
let fs = project.read_with(cx, |project, _| project.fs().clone())?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user