From d92b5679b91f2e95461248eaa862b3188b016ec8 Mon Sep 17 00:00:00 2001 From: Andrey Starovoyt Date: Mon, 26 May 2014 20:41:30 +0400 Subject: [PATCH] doesn't show empty langs in postfix completion tree --- .../postfix/settings/PostfixTemplatesConfigurable.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/template/postfix/settings/PostfixTemplatesConfigurable.java b/platform/lang-impl/src/com/intellij/codeInsight/template/postfix/settings/PostfixTemplatesConfigurable.java index 73868d233326..a0dcbb429518 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/template/postfix/settings/PostfixTemplatesConfigurable.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/template/postfix/settings/PostfixTemplatesConfigurable.java @@ -91,6 +91,10 @@ public class PostfixTemplatesConfigurable implements SearchableConfigurable, Edi for (LanguageExtensionPoint extension : extensions) { List postfixTemplates = ContainerUtil.newArrayList(((PostfixTemplateProvider)extension.getInstance()).getTemplates()); + if (postfixTemplates.isEmpty()) { + continue; + } + ContainerUtil.sort(postfixTemplates, TEMPLATE_COMPARATOR); templateMultiMap.putValues(extension.getKey(), postfixTemplates);