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
29cdef1ec8Joseph T. Lyons committed on 6/16/2025, 4:20:46 PM· committed by GitHubparent6df4c53
1 file changedLine totals unavailable