Skip to content

Commit

Permalink
TASK: Improve Prototype completion provider
Browse files Browse the repository at this point in the history
  • Loading branch information
cvette committed Mar 12, 2018
1 parent 0103a9e commit 33bb61f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ protected void addCompletions(@NotNull CompletionParameters parameters, Processi
for (String key : keys) {
Collection<FusionPrototypeSignature> prototypes = StubIndex.getElements(FusionPrototypeDeclarationIndex.KEY, key, project, GlobalSearchScope.projectScope(project), FusionPrototypeSignature.class );
for (FusionPrototypeSignature signature : prototypes) {
result.addElement(LookupElementBuilder.create(signature.getType()).withIcon(FusionIcons.PROTOTYPE));
if (signature.getType() != null) {
result.addElement(LookupElementBuilder.create(signature.getType().getText()).withIcon(FusionIcons.PROTOTYPE));
}
}
}
}
Expand Down

0 comments on commit 33bb61f

Please sign in to comment.