From f5150ce87a74a41874548bcf7ee66b4b9bff3848 Mon Sep 17 00:00:00 2001 From: Jan Skrasek Date: Sat, 30 May 2020 13:38:26 +0200 Subject: [PATCH] property name autocompletion has icon --- .../intellij/completion/PropertyNameCompletionProvider.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/nextras/orm/intellij/completion/PropertyNameCompletionProvider.kt b/src/org/nextras/orm/intellij/completion/PropertyNameCompletionProvider.kt index c37b007..ff5f772 100644 --- a/src/org/nextras/orm/intellij/completion/PropertyNameCompletionProvider.kt +++ b/src/org/nextras/orm/intellij/completion/PropertyNameCompletionProvider.kt @@ -5,6 +5,7 @@ import com.intellij.codeInsight.completion.CompletionProvider import com.intellij.codeInsight.completion.CompletionResultSet import com.intellij.codeInsight.lookup.LookupElementBuilder import com.intellij.util.ProcessingContext +import com.jetbrains.php.PhpIcons import com.jetbrains.php.PhpIndex import com.jetbrains.php.lang.documentation.phpdoc.psi.PhpDocProperty import com.jetbrains.php.lang.psi.elements.MethodReference @@ -38,7 +39,9 @@ class PropertyNameCompletionProvider : CompletionProvider( .filterIsInstance() .forEach { result.addElement( - LookupElementBuilder.create(it.name).withTypeText(it.type.toString()) + LookupElementBuilder.create(it.name) + .withIcon(PhpIcons.FIELD_ICON) + .withTypeText(it.type.toString()) ) } }