search: Add heuristic for discarding matching of binary files (#23581)

Fixes #23398 
Closes #23398

We'll bail on searches of files that we know are binary (thus even if we
were to find a match in them, they'd be thrown away by buffer loader).

Release Notes:

- Improved project search performance in worktrees with binary files
fb63f61755Piotr Osiewicz committed on 1/23/2025, 10:15:58 PM· committed by GitHubparent35ddb43
3 files changedLine totals unavailable