Fix directory context paths (#28459)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan
2025-04-09 21:40:46 +00:00
committed by GitHub
parent 23c3f5f410
commit ba767a1998
9 changed files with 135 additions and 99 deletions
+4
View File
@@ -334,6 +334,10 @@ impl ProjectPath {
path: Path::new("").into(),
}
}
pub fn starts_with(&self, other: &ProjectPath) -> bool {
self.worktree_id == other.worktree_id && self.path.starts_with(&other.path)
}
}
#[derive(Debug, Default)]