# Wait for worktree scan to complete before starting search \(\#54534\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5294e16547d9cacba49bbc8968183fb70fe8b58b

Requested commit: 5294e16547d9cacba49bbc8968183fb70fe8b58b

Commit: 5294e16547d9cacba49bbc8968183fb70fe8b58b

Tree: 537f6c9edcf5cdaf0baf0cbfa14ef7be296e4926

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
Wait for worktree scan to complete before starting search (#54534)

When starting a search on a project that is in the middle of a scan, we
used to miss results in files that had not yet been scanned.

This change makes the search wait for the scan to complete.


Closes #9858

Release Notes:

- Fixed incomplete search results when the project scan is incomplete
```

## Parents

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

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