helix
helix copied to clipboard
Dedupe goto reference results
We could dedupe more simply with just locations.sort(); locations.dedupe() but presumably language servers order results by relevance. Two lingering questions:
- How to test this
- This belongs in helix-lsp rather than helix-term, but I couldn't figure a way to attach a callback to the Future directly
Fixes #3351
Screenshots
Before:
After:

Duplicate of https://github.com/helix-editor/helix/pull/4097
I think we can close this now since RA merged an upstream fix for this last year: https://github.com/rust-lang/rust-analyzer/pull/13571