Lookup relative paths in a worktree more robustly (#29274)

Attempt to lookup exact relative paths before full worktree traversal,
only do the full traversal if all other methods fail.

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

Release Notes:

- Fixed wrong paths opening when cmd-clicking in the terminal
d5f3fbdc88Kirill Bulatov committed on 4/23/2025, 1:13:28 PM· committed by GitHubparent76a78b5
1 file changedLine totals unavailable