# Fix zed irresponsive on symlinked directory events outside the editor \(\#50746\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7620b7833722279aaced4255517cf85b8000153e

Requested commit: 7620b7833722279aaced4255517cf85b8000153e

Commit: 7620b7833722279aaced4255517cf85b8000153e

Tree: fb42bc608eabb3702f442ce74d31424bee499d71

Author: prayansh_chhablani

Committer: GitHub

## Message

```
Fix zed irresponsive on symlinked directory events outside the editor (#50746)

Closes #48729, closes #27263, closes #45954

This PR aims to make zed responsive on symlinked directory events
outside the editor.

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

new-linked-folder is inside /zed-test/zed-project

output of ls -ld new-linked-folder 
`lrwxr-xr-x 1 prayanshchhablani staff 42 28 Mar 23:20 new-linked-folder
-> /Users/prayanshchhablani/new-target-folder`

this shows new-linked-folder is a symlink folder whose target is
new-target-folder which is outside the root dir of the project opened in
zed.



https://github.com/user-attachments/assets/ffebafc3-2fc4-4293-bdbf-3a894a45e276

Release Notes:

- Fixed file watching of symlinks that point outside of the
project/watched directory. Zed should now properly respond to changes in
files in symlinked directories
```

## Parents

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

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