# pane: Hide "Copy Relative Path" and "Reveal In Project Panel" actions for files outside of the projects \(\#25386\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b0dee941267577b3f40cf35d385c951fc30cd3af)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b0dee941267577b3f40cf35d385c951fc30cd3af

Requested commit: b0dee941267577b3f40cf35d385c951fc30cd3af

Commit: b0dee941267577b3f40cf35d385c951fc30cd3af

Tree: 792ce44fe4846c9254c8bd2b26e9416c88fef60d

Author: Egor Krugletsov

Committer: GitHub

## Message

```
pane: Hide "Copy Relative Path" and "Reveal In Project Panel" actions for files outside of the projects (#25386)

"Copy Relative Path" action had a check for existence of relative path
but it always passed because
[`WorktreeStore::find_worktree()`](https://github.com/zed-industries/zed/blob/1d5499bee72f1ea57ed883b942f05d5c1e7cec89/crates/project/src/worktree_store.rs#L148)
function returned empty path for these kinds of files. It feels correct
to make changes there, but I don't know what else could be impacted.

"Reveal In Project Panel" had no check whatsoever and so I made one.

Release Notes:

- N/A
```

## Parents

- [e65471c7a1a1a7b8195f40447549158953883985](https://git.cafe/gitcafe/zed/commit/e65471c7a1a1a7b8195f40447549158953883985?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b0dee941267577b3f40cf35d385c951fc30cd3af?format=markdown)
