Give more priority to declarations from the same file

This commit is contained in:
Nikolay Krasko
2013-09-13 22:40:44 +04:00
parent 39bf53155b
commit b0acf758bc
7 changed files with 64 additions and 14 deletions
@@ -0,0 +1,5 @@
package some
fun foo() = 12
fun fooImported() = 12
fun fooNotImported() = 12
@@ -0,0 +1,12 @@
import some.fooImported
val fooVar = 12
fun fooLocal() = 12
val some = foo<caret>
// "foo" is before other elements because of exact prefix match
// ORDER: foo, fooLocal, fooVar, fooImported, fooNotImported
// NUMBER: 2
// SELECTED: 1