mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
prevent Emmet from overriding surround template expansion by Tab (IDEA-110404)
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ public class CustomTemplateCallback {
|
||||
TemplateSettings settings = TemplateSettings.getInstance();
|
||||
List<TemplateImpl> candidates = new ArrayList<TemplateImpl>();
|
||||
for (TemplateImpl template : settings.getTemplates(templateKey)) {
|
||||
if (!template.isDeactivated() && !template.isSelectionTemplate()) {
|
||||
if (!template.isDeactivated()) {
|
||||
candidates.add(template);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,5 +52,13 @@ public class XmlLiveTemplateTest extends LightCodeInsightFixtureTestCase {
|
||||
manager.startTemplate(myFixture.getEditor(), template);
|
||||
myFixture.checkResult '<tag><selection><</selection><caret></tag>'
|
||||
}
|
||||
|
||||
public void "test insert CDATA by CD and tab"() {
|
||||
myFixture.configureByText 'a.xml', '<tag><caret></tag>'
|
||||
myFixture.type('CD\t')
|
||||
myFixture.checkResult '''<tag><![CDATA[
|
||||
|
||||
]]></tag>'''
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user