Show project panel symlink icons for remote clients (#19464)
This commit is contained in:
parent
e8207288e5
commit
1ae30f5813
10 changed files with 31 additions and 36 deletions
|
@ -1739,11 +1739,9 @@ impl Pane {
|
|||
.worktree_for_entry(entry, cx)?
|
||||
.read(cx);
|
||||
let entry = worktree.entry_for_id(entry)?;
|
||||
let abs_path = worktree.absolutize(&entry.path).ok()?;
|
||||
if entry.is_symlink {
|
||||
abs_path.canonicalize().ok()
|
||||
} else {
|
||||
Some(abs_path)
|
||||
match &entry.canonical_path {
|
||||
Some(canonical_path) => Some(canonical_path.to_path_buf()),
|
||||
None => worktree.absolutize(&entry.path).ok(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue