You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
option "merge search results from the same line" is not effective on Scala + metaLS #729
@tribbloid does this still happen with 0.30.1? LSP4IJ's usages can be merged by line (they are UsageInfo2UsageAdapters), so it may depend on the view: does the screenshot show the Show Usages popup or the Find tool window?
Answering my own question from the screenshot: it shows the Find tool window, grouped by usage type. The declaration on line 166 is reported three times, as a definition, as a reference and as a type definition, so it lands in three groups:
LSP4IJ asks for the references with includeDeclaration set, so the reference list repeats the declaration.
IntelliJ merges the usages of one line only within a group.
Turning off Group by Usage Type should merge them. The fix in LSP4IJ is to skip a reference or a type definition whose range is that of a declaration or definition it already found.
Activity
angelozerr commentedon Jan 8, 2025
Indeed it should be nice but I fear that I will not have time to do that, any contribution are welcome!
lagergren commentedon Nov 20, 2026
@tribbloid does this still happen with 0.30.1? LSP4IJ's usages can be merged by line (they are
UsageInfo2UsageAdapters), so it may depend on the view: does the screenshot show the Show Usages popup or the Find tool window?lagergren commentedon Nov 24, 2026
Answering my own question from the screenshot: it shows the Find tool window, grouped by usage type. The declaration on line 166 is reported three times, as a definition, as a reference and as a type definition, so it lands in three groups:
includeDeclarationset, so the reference list repeats the declaration.Turning off Group by Usage Type should merge them. The fix in LSP4IJ is to skip a reference or a type definition whose range is that of a declaration or definition it already found.
fix: Find Usages no longer lists the declaration again as a reference…
fix: Find Usages no longer lists the declaration again as a reference…
feat: Find Usages shows a reference that both the language plugin and…
fix: Find Usages no longer lists the declaration again as a reference…