more narrow

This commit is contained in:
Aria Desires 2025-10-31 11:21:33 -04:00
parent 5473636256
commit 8e12163754
1 changed files with 1 additions and 3 deletions

View File

@ -190,10 +190,8 @@ impl Files {
let roots = self.inner.roots.read().unwrap();
let absolute = SystemPath::absolute(path, db.system().current_directory());
// We need to resolve away symlinks here to avoid getting confused about subdirectories.
let canonicalized = db.system().canonicalize_path(&absolute).unwrap_or(absolute);
roots.at(&canonicalized)
roots.at(&absolute)
}
/// The same as [`Self::root`] but panics if no root is found.