if showing live templates in completion, show them in explicit one as well

This commit is contained in:
peter
2011-09-15 18:16:57 +02:00
parent 12e01dfe57
commit cff59322c1
@@ -41,8 +41,6 @@ public class LiveTemplateCompletionContributor extends CompletionContributor {
protected void addCompletions(@NotNull CompletionParameters parameters,
ProcessingContext context,
@NotNull CompletionResultSet result) {
if (parameters.getInvocationCount() > 0) return; //only in autopopups for now
final PsiFile file = parameters.getPosition().getContainingFile();
final int offset = parameters.getOffset();
if (Registry.is("show.live.templates.in.completion")) {
@@ -52,6 +50,8 @@ public class LiveTemplateCompletionContributor extends CompletionContributor {
return;
}
if (parameters.getInvocationCount() > 0) return; //only in autopopups for now
final String prefix = result.getPrefixMatcher().getPrefix();
final TemplateImpl template = findApplicableTemplate(file, offset, prefix);
if (template != null) {