Non-imported top-level functions completion does not require second press

This commit is contained in:
Valentin Kipyatkov
2015-11-06 15:47:43 +03:00
parent 4c5d5ed18f
commit 80a1d94515
12 changed files with 22 additions and 26 deletions
@@ -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(){}
@@ -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
@@ -8,5 +8,4 @@ fun firstFun() {
a.<caret>
}
// INVOCATION_COUNT: 2
// EXIST: secondExtension
@@ -7,7 +7,6 @@ fun String.foo() {
hid<caret>
}
// INVOCATION_COUNT: 2
// ABSENT: hiddenFun
// ABSENT: hiddenProperty
// ABSENT: hiddenFunFromSameFile
@@ -6,7 +6,6 @@ fun f() {
C() <caret>
}
// INVOCATION_COUNT: 2
// ABSENT: "xxx"
// EXIST: { lookupString: "yyy", attributes: "bold" }
// ABSENT: "zzz"
@@ -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" }