# Implement work dir updating for active and background threads \(\#52793\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f3e672c09a5928c1b51bed7fccbfcc690f1a0e78

Requested commit: f3e672c09a5928c1b51bed7fccbfcc690f1a0e78

Commit: f3e672c09a5928c1b51bed7fccbfcc690f1a0e78

Tree: d47a843b00991dd065648d8a61bff72efd9854dd

Author: Mikayla Maki

Committer: GitHub

## Message

```
Implement work dir updating for active and background threads (#52793)

This PR changes things so that when the user mutates their current
project (e.g. adding a folder), the thread entries now update the
currently running threads to be pointing at this new set of folders.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

TODO:
- [x] Manually test this case

Release Notes:

- N/A
```

## Parents

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

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