don't lift prefix items during smart completion (IDEA-75606)

This commit is contained in:
peter
2011-10-19 15:20:39 +02:00
parent ad2301818c
commit e142fd0ff4
2 changed files with 5 additions and 1 deletions
@@ -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 {
@@ -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) {