Revert "Replace project_path
with project_entry
in workspace::{Item, ItemView}
"
This reverts commit 9c9a09cccb
.
This commit is contained in:
parent
1d72e8face
commit
a73671e57c
7 changed files with 67 additions and 126 deletions
|
@ -1,7 +1,7 @@
|
|||
use super::{
|
||||
fs::{self, Fs},
|
||||
ignore::IgnoreStack,
|
||||
DiagnosticSummary, ProjectEntry,
|
||||
DiagnosticSummary,
|
||||
};
|
||||
use ::ignore::gitignore::{Gitignore, GitignoreBuilder};
|
||||
use anyhow::{anyhow, Result};
|
||||
|
@ -2202,13 +2202,6 @@ impl File {
|
|||
pub fn worktree_id(&self, cx: &AppContext) -> WorktreeId {
|
||||
self.worktree.read(cx).id()
|
||||
}
|
||||
|
||||
pub fn project_entry(&self, cx: &AppContext) -> Option<ProjectEntry> {
|
||||
self.entry_id.map(|entry_id| ProjectEntry {
|
||||
worktree_id: self.worktree_id(cx),
|
||||
entry_id,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue