Add a test
co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
cf2bbfc85a
commit
3a3c1c5a5b
4 changed files with 235 additions and 55 deletions
|
@ -1018,9 +1018,11 @@ impl Pane {
|
|||
|
||||
if let Some(path) = item.project_path(cx) {
|
||||
let abs_path = self
|
||||
.workspace()
|
||||
.upgrade(cx)
|
||||
.and_then(|workspace| workspace.read(cx).absolute_path(&path, cx));
|
||||
.nav_history
|
||||
.borrow()
|
||||
.paths_by_item
|
||||
.get(&item.id())
|
||||
.and_then(|(_, abs_path)| abs_path.clone());
|
||||
self.nav_history
|
||||
.borrow_mut()
|
||||
.paths_by_item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue