mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
CCE
This commit is contained in:
+2
-1
@@ -174,7 +174,8 @@ public class MagicCompletionContributor extends CompletionContributor {
|
||||
@Override
|
||||
public void consume(CompletionResult completionResult) {
|
||||
LookupElement element = completionResult.getLookupElement();
|
||||
if (allowed.contains(element.getObject())) {
|
||||
Object object = element.getObject();
|
||||
if (object instanceof PsiElement && allowed.contains(object)) {
|
||||
return;
|
||||
}
|
||||
result.passResult(completionResult);
|
||||
|
||||
Reference in New Issue
Block a user