Replace project_path
with project_entry
in workspace::{Item, ItemView}
This commit is contained in:
parent
18f1040c85
commit
9c9a09cccb
7 changed files with 122 additions and 64 deletions
|
@ -567,6 +567,14 @@ impl Project {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn path_for_entry(&self, entry: ProjectEntry, cx: &AppContext) -> Option<ProjectPath> {
|
||||
let worktree = self.worktree_for_id(entry.worktree_id, cx)?.read(cx);
|
||||
Some(ProjectPath {
|
||||
worktree_id: entry.worktree_id,
|
||||
path: worktree.entry_for_id(entry.entry_id)?.path.clone(),
|
||||
})
|
||||
}
|
||||
|
||||
pub fn is_running_disk_based_diagnostics(&self) -> bool {
|
||||
self.pending_disk_based_diagnostics > 0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue