Non-imported top-level functions completion does not require second press
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
package dependency
|
||||
|
||||
fun topLevelFun(){}
|
||||
fun xxx_topLevelFun(){}
|
||||
|
||||
val topLevelVal: Int = 1
|
||||
val xxx_topLevelVal: Int = 1
|
||||
|
||||
fun CharSequence.extFun(){}
|
||||
fun CharSequence.xxx_extFun(){}
|
||||
|
||||
+4
-5
@@ -1,8 +1,7 @@
|
||||
fun String.foo() {
|
||||
val v = ::<caret>
|
||||
val v = ::xxx_<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST: topLevelFun
|
||||
// EXIST: topLevelVal
|
||||
// ABSENT: extFun
|
||||
// EXIST: xxx_topLevelFun
|
||||
// EXIST: xxx_topLevelVal
|
||||
// ABSENT: xxx_extFun
|
||||
|
||||
-1
@@ -8,5 +8,4 @@ fun firstFun() {
|
||||
a.<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST: secondExtension
|
||||
-1
@@ -7,7 +7,6 @@ fun String.foo() {
|
||||
hid<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// ABSENT: hiddenFun
|
||||
// ABSENT: hiddenProperty
|
||||
// ABSENT: hiddenFunFromSameFile
|
||||
|
||||
idea/idea-completion/testData/basic/multifile/NotImportedInfixExtension/NotImportedInfixExtension.kt
Vendored
-1
@@ -6,7 +6,6 @@ fun f() {
|
||||
C() <caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// ABSENT: "xxx"
|
||||
// EXIST: { lookupString: "yyy", attributes: "bold" }
|
||||
// ABSENT: "zzz"
|
||||
|
||||
-1
@@ -10,7 +10,6 @@ class C {
|
||||
}
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 2
|
||||
// EXIST: { lookupString: "xxx", itemText: "xxx", tailText: "()", typeText: "Unit" }
|
||||
// EXIST: { lookupString: "xxy", itemText: "xxy", tailText: "()", typeText: "Unit" }
|
||||
// EXIST: { lookupString: "xxz", itemText: "xxz", tailText: "(p: Int)", typeText: "Unit" }
|
||||
|
||||
Reference in New Issue
Block a user