Skip to content

Commit fad472a

Browse files
committed
#305_revert XmlCompletionContributor
1 parent 388182e commit fad472a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/com/magento/idea/magento2plugin/completion/xml/XmlCompletionContributor.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,20 @@ public XmlCompletionContributor() {
133133

134134
// <observer instance="Class">
135135
extend(CompletionType.BASIC, psiElement(XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN)
136-
.inside(XmlPatterns.xmlAttribute().withName(ModuleEventsXml.INSTANCE_ATTRIBUTE)
137-
.withParent(XmlPatterns.xmlTag().withName(ModuleEventsXml.OBSERVER_TAG)))
138-
.inFile(xmlFile().withName(string().matches(ModuleEventsXml.FILE_NAME))),
139-
new PhpClassCompletionProvider()
136+
.inside(XmlPatterns.xmlAttribute().withName(ModuleEventsXml.INSTANCE_ATTRIBUTE)
137+
.withParent(XmlPatterns.xmlTag().withName(ModuleEventsXml.OBSERVER_TAG)
138+
)
139+
).inFile(xmlFile().withName(string().matches(ModuleEventsXml.FILE_NAME))),
140+
new PhpClassCompletionProvider()
140141
);
141142

142143
// <job instance="class">
143144
extend(CompletionType.BASIC, psiElement(XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN)
144-
.inside(XmlPatterns.xmlAttribute().withName(CommonXml.ATTR_INSTANCE)
145-
.withParent(XmlPatterns.xmlTag().withName(CrontabXmlTemplate.CRON_JOB_TAG)))
146-
.inFile(xmlFile().withName(string().matches(CrontabXmlTemplate.FILE_NAME))),
147-
new PhpClassCompletionProvider()
145+
.inside(XmlPatterns.xmlAttribute().withName(CommonXml.ATTR_INSTANCE)
146+
.withParent(XmlPatterns.xmlTag().withName(CrontabXmlTemplate.CRON_JOB_TAG)
147+
)
148+
).inFile(xmlFile().withName(string().matches(CrontabXmlTemplate.FILE_NAME))),
149+
new PhpClassCompletionProvider()
148150
);
149151

150152
// <source_model>php class completion</source_model> in system.xml files.

0 commit comments

Comments
 (0)