feature: Merge results from different LSP sources sharing the same uri
and range
#423
Closed
1 task done
Labels
uri
and range
#423
Did you check the docs?
Is your feature request related to a problem? Please describe.
When multiple LSP servers are attached to a buffer, they could provide multiple, identical results when querying for the same information (definitions, references...).
For example, let's consider the
Trouble lsp
results provided by 3 different LSP servers attached to a buffer:As you can see, the same result is repeated multiple times, with the only difference being the LSP server that provided it.
This redundancy makes the provided results not immediate to read and understand.
Describe the solution you'd like
It would be great to merge the results whose
uri
andrange
are the same, for example, this way:By doing this, the provided information would be far more readable and understandable.
If
range
is not the same for locations with the sameuri
, the corresponding results should obviously not be merged.Describe alternatives you've considered
N/A
Additional context
This merge feature could be added as an option in the settings, named for example
merge_results
(true
/false
).This feature could globally affect all of the result kinds / panels provided by
Trouble
.The text was updated successfully, but these errors were encountered: