IDEA-68698 Elements with exactly same prefix (and same proximity) should be placed at the top of the list

This commit is contained in:
peter
2011-05-12 18:02:02 +02:00
parent 296e569942
commit 8301cbedae
3 changed files with 25 additions and 24 deletions

View File

@@ -0,0 +1,9 @@
class FooOCSomething {}
class FooObjectCollector {}
class Foo {
{
FooOC<caret>
}
}

View File

@@ -209,6 +209,10 @@ public class NormalCompletionOrderingTest extends CompletionSortingTestCase {
checkPreferredItems(0, "else", "element");
}
public void testPreferMoreMatching() {
checkPreferredItems(0, "FooOCSomething", "FooObjectCollector");
}
public void testPreferSamePackageOverImported() {
myFixture.addClass("package bar; public class Bar1 {}");
myFixture.addClass("package bar; public class Bar2 {}");