FIR Completion: Add psi element to the lookups

- May be a performance problem later
This commit is contained in:
Roman Golyshev
2020-08-06 00:48:09 +03:00
parent 53180e707e
commit b6ee478190
@@ -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))
}
}