Skip to content

Commit fb8aeee

Browse files
committed
Use Field icon instead of Property icon. This follows the convention used by other languages which have synthetic properties, like Typescript.
Field icon is a blue square, which is typical for object fields. Property is grey nondescript wrench, and its unclear that it is an object property.
1 parent 4b92529 commit fb8aeee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/main/kotlin/org/javacs/kt/completion/RenderCompletionItem.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class RenderCompletionItem(val snippetsEnabled: Boolean) : DeclarationDescriptor
4949
override fun visitPropertySetterDescriptor(desc: PropertySetterDescriptor, nothing: Unit?): CompletionItem {
5050
setDefaults(desc)
5151

52-
result.kind = Property
52+
result.kind = Field
5353

5454
return result
5555
}
@@ -173,7 +173,7 @@ class RenderCompletionItem(val snippetsEnabled: Boolean) : DeclarationDescriptor
173173
override fun visitPropertyGetterDescriptor(desc: PropertyGetterDescriptor, nothing: Unit?): CompletionItem {
174174
setDefaults(desc)
175175

176-
result.kind = Property
176+
result.kind = Field
177177

178178
return result
179179
}
@@ -189,7 +189,7 @@ class RenderCompletionItem(val snippetsEnabled: Boolean) : DeclarationDescriptor
189189
override fun visitPropertyDescriptor(desc: PropertyDescriptor, nothing: Unit?): CompletionItem {
190190
setDefaults(desc)
191191

192-
result.kind = Property
192+
result.kind = Field
193193

194194
return result
195195
}

0 commit comments

Comments
 (0)