# project_search: Fix project search status text and refactor search state \(\#54753\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 250e697ff728535985958f09557e2bad83bcd2c0

Requested commit: 250e697ff728535985958f09557e2bad83bcd2c0

Commit: 250e697ff728535985958f09557e2bad83bcd2c0

Tree: 550daf20f06a396c19f15b76904c2d8e111793f8

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
project_search: Fix project search status text and refactor search state (#54753)

This change fixes a small bug where we were showing "Loading project..."
even when in fact we had already started the search.

It also refactors three booleans in the `SearchState` enum, so that it's
harder to make similar mistakes in the future.


Release Notes:

- N/A
```

## Parents

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

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