Fix diagnostics batches stopping at paths without a worktree (#64017)

Closes https://github.com/zed-industries/zed/issues/62303

Based on the amazing find in
https://github.com/zed-industries/zed/issues/62303#issuecomment-5553387960

Release Notes:

- Fixed diagnostics batches stopping at paths without a worktree
1c3d902fbfKirill Bulatov committed on 9/11/2026, 9:16:11 AM· committed by GitHubparent6fff327
2 files changedLine totals unavailable