Smart completion: 2 lookup strings for static member items

This commit is contained in:
Valentin Kipyatkov
2014-10-28 20:33:33 +03:00
parent 2b33501471
commit e256d14075
4 changed files with 26 additions and 1 deletions
@@ -110,6 +110,10 @@ class StaticMembers(val bindingContext: BindingContext, val resolveSession: Reso
val qualifierText = qualifiedNameForSourceCode(classDescriptor)
return object: LookupElementDecorator<LookupElement>(lookupElement) {
override fun getAllLookupStrings(): Set<String> {
return setOf(lookupElement.getLookupString(), qualifierPresentation)
}
override fun renderElement(presentation: LookupElementPresentation) {
getDelegate().renderElement(presentation)