mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-07 16:36:58 +00:00
Two inconsistencies with IDEA's Copy Reference (#1892): - A language server may bake a signature into a callable's outline name (jdtls returns DocumentSymbol.name = 'getUserById(int)', the params also duplicated in detail). The reference then came out as 'pkg.UserService#getUserById(int)' instead of 'pkg.UserService#getUserById'. Strip the '(…)' suffix for function/method/constructor symbols via a new declaredName() helper, applied at both chain-mapping sites in resolveReference. - Kotlin and Scala joined the whole chain with '.', producing 'pkg.UserService.getUserById' where IDEA emits 'pkg.UserService#getUserById'. Route them through the same jvmReference() as Java/Groovy so members are separated from the type path by '#'. Added tests for both cases and the signature stripping.