Fix project_panel::NewSearchInDirectory to work on files (#23696)

Closes #23383

This PR changes `project_panel::NewSearchInDirectory` to open project
search filtered by the parent directory when triggered on a file, rather
than doing nothing.

Release Notes:

- Improved `project_panel::NewSearchInDirectory` to search the parent
directory when triggered on a file
ff72c6358eWilliam Blazer committed on 1/29/2025, 10:50:12 PM· committed by GitHubparent508c08b
1 file changedLine totals unavailable