ElyTree: no Git version in the status bar; plain real paths on Windows
The component pin moves to bd01470 (long change-list names end before the row's buttons). Real paths come from dunce, so Windows shows C:\... rather than \?\C:\..., and 36 more ElyTree tests pass there. The lock returns to windows-sys 0.61, which the last pin change had resolved down. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d3cfff86db
commit
bfa2f1908c
14 files changed
+450
-471
No files matched your search
@@ -156,7 +156,7 @@ pub fn open(app: AppId, window: &mut Window, cx: &mut App) -> Entity<Root> {
|
||||
/// `file` as Git names it; a symlink stays itself.
|
||||
pub(crate) fn inside(root: &Path, file: &Path) -> io::Result<String> {
|
||||
let name = file.file_name().ok_or_else(|| io::Error::other("a path without a name"))?;
|
||||
let dir = std::fs::canonicalize(file.parent().unwrap_or(Path::new(".")))?;
|
||||
let dir = dunce::canonicalize(file.parent().unwrap_or(Path::new(".")))?;
|
||||
let rel = dir.join(name);
|
||||
let rel = rel.strip_prefix(root).map_err(io::Error::other)?;
|
||||
rel.to_str().map(str::to_owned).ok_or_else(|| io::Error::other("a path that is not UTF-8"))
|
||||
|
||||
Reference in new issue
Block a user