Allow opening entries from project panel

This commit is contained in:
Antonio Scandurra
2021-09-29 13:08:27 +02:00
parent e030917769
commit 67c40eb4be
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -1582,7 +1582,7 @@ impl Snapshot {
})
}
fn entry_for_id(&self, id: usize) -> Option<&Entry> {
pub fn entry_for_id(&self, id: usize) -> Option<&Entry> {
let entry = self.entries_by_id.get(&id, &())?;
self.entry_for_path(&entry.path)
}