Fixed all members are grayed in global context
This commit is contained in:
@@ -207,7 +207,7 @@ public class LookupElementFactory(
|
|||||||
if (receiverTypes == null) return null
|
if (receiverTypes == null) return null
|
||||||
if (descriptor !is CallableMemberDescriptor) return null
|
if (descriptor !is CallableMemberDescriptor) return null
|
||||||
|
|
||||||
val isReceiverNullable = receiverTypes.all { it.isNullable() }
|
val isReceiverNullable = receiverTypes.isNotEmpty() && receiverTypes.all { it.isNullable() }
|
||||||
val receiverParameter = descriptor.getExtensionReceiverParameter()
|
val receiverParameter = descriptor.getExtensionReceiverParameter()
|
||||||
|
|
||||||
if (receiverParameter != null) {
|
if (receiverParameter != null) {
|
||||||
|
|||||||
@@ -3,4 +3,5 @@ val test = "Hello"
|
|||||||
|
|
||||||
val more = test<caret>
|
val more = test<caret>
|
||||||
|
|
||||||
// EXIST: test, testing
|
// EXIST: { lookupString: "test", itemText: "test", tailText: " (<root>)", typeText: "String", attributes: "" }
|
||||||
|
// EXIST: { lookupString: "testing", itemText: "testing", tailText: " (<root>)", typeText: "Int", attributes: "" }
|
||||||
|
|||||||
Reference in New Issue
Block a user