diagnostics: Add back links to nearby related diagnostics (#64134)

# Objective

Fixes #63835.

Nearby related diagnostics omitted the link back to their primary
diagnostic.

## Solution

Always include the existing back link on related diagnostic blocks,
regardless of line distance. The primary diagnostic still suppresses
nearby related hints as before.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

---

Release Notes:

- Improved diagnostic navigation by showing back links to the primary
diagnostic even for nearby related diagnostics.

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
bd61c4a2e3Gautam Manchandani committed on 9/21/2026, 10:05:47 PM· committed by GitHubparenta434bb7
2 files changedLine totals unavailable