Resolve to proper PsiElement
thsaravana opened this issue · comments
Saravana commented
Go through this first: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360001231359-Kotlin-FindUsages-not-working-for-Primary-constructor-for-custom-reference
As you can see, since we resolve to PsiField
all the time, we are not fully connecting the Primary Constructor (KtParameter) with the HBS element. So resolve to proper PsiElement.
This should fix the FindUsage for parameters in Primary Constructor