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
Find Usages: merge the language server's usages with those of the language plugin #2227
In #729 the reporter (Scala plugin + Metals) also asked: "I would also prefer that search result from both LSP and language plugin to be also merged". The first request was fixed in #2219 (3e24de8): the declaration was listed under Definitions, Type Definitions and References.
What happens
When Find Usages searches a language plugin's element, IntelliJ runs both the plugin's own search and LSP4IJ's CustomUsageSearcher (FindUsagesManager.createUsageSearcher). The usage view merges a line's usages only within one group (GroupNode.tryMerge), and it groups by usage type and by file structure. LSP4IJ's usages have their own usage type ("References") and no file-structure parent. So a reference that both find is listed twice, for example under "Method call" and under "References".
Activity
feat: Find Usages shows a reference that both the language plugin and…