mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
don't lift prefix items during smart completion (IDEA-75606)
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ public class SmartTypeCompletionOrderingTest extends CompletionSortingTestCase {
|
||||
}
|
||||
|
||||
public void testJComponentAdd() throws Throwable {
|
||||
checkPreferredItems(0, "name", "b", "foo", "fooBean239", "this");
|
||||
checkPreferredItems(0, "name", "b", "fooBean239", "this", "getName");
|
||||
}
|
||||
|
||||
public void testJComponentAddNew() throws Throwable {
|
||||
|
||||
+4
@@ -279,6 +279,10 @@ public class CompletionServiceImpl extends CompletionService{
|
||||
|
||||
}
|
||||
|
||||
if (parameters.getCompletionType() == CompletionType.SMART) {
|
||||
return sorter;
|
||||
}
|
||||
|
||||
return sorter.withClassifier("priority", true, new ClassifierFactory<LookupElement>("liftShorter") {
|
||||
@Override
|
||||
public Classifier<LookupElement> createClassifier(final Classifier<LookupElement> next) {
|
||||
|
||||
Reference in New Issue
Block a user