# Ensure we scan worktrees again for project types when none were previously found \(\#32805\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 29cdef1ec8c51c96e19be0afc2386a53fc369a2d

Requested commit: 29cdef1ec8c51c96e19be0afc2386a53fc369a2d

Commit: 29cdef1ec8c51c96e19be0afc2386a53fc369a2d

Tree: a0178f22823bbd7801bf0dd37c8ad382c2960772

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Ensure we scan worktrees again for project types when none were previously found (#32805)

This PR doesn't change behavior, but simply adds a case to a test to
make sure we continue to scan any given worktree for project types, if
one was not found prior.

Also updates `detect_project_types`'s return type to an `Option` so we
can differentiate in tests between the case where we skip a worktree
that previously had project type events sent and the case where we
simply found no project types to report.

Release Notes:

- N/A
```

## Parents

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

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