From a68b1ab38bf9aa1b6347bc72b8fd18d583cb176a Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 20 Jul 2015 17:46:48 +0200 Subject: [PATCH] IDEA-137372 Live templates speed search matching can honor group name in addition to the template prefix --- .../codeInsight/template/impl/LiveTemplateTree.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/template/impl/LiveTemplateTree.java b/platform/lang-impl/src/com/intellij/codeInsight/template/impl/LiveTemplateTree.java index 29f835193636..c54d9b837980 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/template/impl/LiveTemplateTree.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/template/impl/LiveTemplateTree.java @@ -75,10 +75,9 @@ class LiveTemplateTree extends CheckboxTree implements DataProvider, CopyProvide } if (object instanceof TemplateImpl) { TemplateImpl template = (TemplateImpl)object; - return StringUtil.notNullize(template.getKey()) + - " " + - StringUtil.notNullize(template.getDescription()) + - " " + + return StringUtil.notNullize(template.getGroupName()) + " " + + StringUtil.notNullize(template.getKey()) + " " + + StringUtil.notNullize(template.getDescription()) + " " + template.getTemplateText(); } return "";