FIR Completion: Add psi element to the lookups
- May be a performance problem later
This commit is contained in:
+3
-1
@@ -30,7 +30,9 @@ internal class HighLevelApiLookupElementFactory {
|
||||
else -> throw IllegalArgumentException("Cannot create a lookup element for $symbol")
|
||||
}
|
||||
|
||||
return elementBuilder.withIcon(KotlinSymbolIconProvider.getIconFor(symbol))
|
||||
return elementBuilder
|
||||
.withPsiElement(symbol.psi) // TODO check if it is a heavy operation and should be postponed
|
||||
.withIcon(KotlinSymbolIconProvider.getIconFor(symbol))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user