mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
mad testing: use real lookup presentation when checking duplicates
This commit is contained in:
+7
-1
@@ -153,7 +153,13 @@ public class InvokeCompletion extends ActionOnRange {
|
||||
private static void checkNoDuplicates(List<LookupElement> items) {
|
||||
Set<List<?>> presentations = new HashSet<>();
|
||||
for (LookupElement item : items) {
|
||||
LookupElementPresentation p = LookupElementPresentation.renderElement(item);
|
||||
LookupElementPresentation p = new LookupElementPresentation() {
|
||||
@Override
|
||||
public boolean isReal() {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
item.renderElement(p);
|
||||
if (seemsTruncated(p.getItemText()) || seemsTruncated(p.getTailText()) || seemsTruncated(p.getTypeText())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user