mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
IDEA-68698 Elements with exactly same prefix (and same proximity) should be placed at the top of the list
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class FooOCSomething {}
|
||||
class FooObjectCollector {}
|
||||
|
||||
class Foo {
|
||||
{
|
||||
FooOC<caret>
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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 {}");
|
||||
|
||||
Reference in New Issue
Block a user