KT-15286: Provide object member extensions in the completion
- Add extensions only when completion of static members is enabled (double ctrl + space and nonempty prefix) - Add full import for callables with receiver in `LookupElement.decorateAsStaticMember`
This commit is contained in:
committed by
Roman Golyshev
parent
15613afa20
commit
6560ecc82b
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
class T
|
||||
|
||||
interface Foo {
|
||||
fun T.fooExtension()
|
||||
val T.fooProperty: Int
|
||||
}
|
||||
|
||||
object A : Foo {
|
||||
override fun T.fooExtension() {}
|
||||
override val T.fooProperty get() = 10
|
||||
}
|
||||
|
||||
fun T.usage() {
|
||||
foo<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST: { lookupString: "fooExtension", itemText: "fooExtension" }
|
||||
// EXIST: { lookupString: "fooProperty", itemText: "fooProperty" }
|
||||
Reference in New Issue
Block a user