Smart completion: prefer items matching by name

This commit is contained in:
Valentin Kipyatkov
2014-09-23 23:01:57 +04:00
committed by valentin
parent 56978c4e16
commit 0462d152eb
38 changed files with 414 additions and 48 deletions
@@ -0,0 +1,19 @@
val br1 = 11
fun br() = 111
class Test(val br2 = 12) {
val br3 = 13
fun brf() = 112
fun test(br4: Int) {
val br5 = 14
br<caret>
}
}
// "br" function is before other elements because of exact prefix match
// ORDER: br, br4, br5, br1, br2, br3, break, brf
// SELECTED: 0