Find Usages: Use isEquivalentTo() instead of identity equality when matching references with PsiCompiledElement
This commit is contained in:
@@ -69,7 +69,8 @@ public fun PsiReference.matchesTarget(candidateTarget: PsiElement): Boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val targets = unwrappedTargets
|
val targets = unwrappedTargets
|
||||||
if (unwrappedCandidate in targets) return true
|
// TODO: Investigate why PsiCompiledElement identity changes
|
||||||
|
if (targets.any { it.isEquivalentTo(unwrappedCandidate) }) return true
|
||||||
|
|
||||||
if (this is JetReference) {
|
if (this is JetReference) {
|
||||||
return targets.any {
|
return targets.any {
|
||||||
|
|||||||
Reference in New Issue
Block a user