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:
@@ -433,7 +433,7 @@ impl Buffer {
|
||||
self.file.as_ref().map(|file| file.path(app))
|
||||
}
|
||||
|
||||
pub fn entry_id(&self) -> Option<(usize, usize)> {
|
||||
pub fn entry_id(&self) -> Option<(usize, u64)> {
|
||||
self.file.as_ref().map(|file| file.entry_id())
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user