Identify Worktree entries by their inode

This will allow us to re-parent elements when re-scanning when the file system changes.
This commit is contained in:
Nathan Sobo
2021-04-13 20:09:41 -06:00
committed by Nathan Sobo
parent 3c0bbe5eb5
commit 24cdfd2471
8 changed files with 95 additions and 89 deletions
+1 -1
View File
@@ -1225,7 +1225,7 @@ impl workspace::ItemView for BufferView {
}
}
fn entry_id(&self, app: &AppContext) -> Option<(usize, usize)> {
fn entry_id(&self, app: &AppContext) -> Option<(usize, u64)> {
self.buffer.read(app).entry_id()
}