Support relative paths in LSP & DAP binaries (#42135)

Closes #41214

Release Notes:

- Added support for relative paths in LSP and DAP binaries

---------

Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Julia Ryan <juliaryan3.14@gmail.com>
This commit is contained in:
Andrew Farkas
2025-11-10 19:33:00 +00:00
committed by GitHub
co-authored by Cole Miller Julia Ryan
parent 2b369d7532
commit 3fbfea491d
4 changed files with 77 additions and 6 deletions
+2 -2
View File
@@ -2352,8 +2352,8 @@ impl Snapshot {
self.entries_by_path.first()
}
/// TODO: what's the difference between `root_dir` and `abs_path`?
/// is there any? if so, document it.
/// Returns `None` for a single file worktree, or `Some(self.abs_path())` if
/// it is a directory.
pub fn root_dir(&self) -> Option<Arc<Path>> {
self.root_entry()
.filter(|entry| entry.is_dir())