Skip to content

Commit 7085982

Browse files
author
bohar
committed
[xmlCompletion] #92 - Fixed wrong completion applying by file name
1 parent 1506f60 commit 7085982

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public XmlCompletionContributor() {
107107
extend(CompletionType.BASIC, psiElement(XmlTokenType.XML_DATA_CHARACTERS)
108108
.inside(XmlPatterns.xmlTag().withName(ModuleSystemXml.SOURCE_MODEL_ELEMENT_NAME)
109109
.withParent(XmlPatterns.xmlTag().withName(ModuleSystemXml.FIELD_ELEMENT_NAME))
110-
).inFile(xmlFile().withName(string().endsWith(ModuleSystemXml.FILE_NAME))),
110+
).inFile(xmlFile().withName(string().matches(ModuleSystemXml.FILE_NAME))),
111111
new PhpClassCompletionProvider()
112112
);
113113

@@ -116,7 +116,7 @@ public XmlCompletionContributor() {
116116
.inside(XmlPatterns.xmlAttribute().withName(ModuleWidgetXml.ATTRIBUTE_SOURCE_MODEL_NAME)
117117
.withParent(XmlPatterns.xmlTag().withName(ModuleWidgetXml.TAG_PARAMETER_NAME).
118118
withParent(XmlPatterns.xmlTag().withName(ModuleWidgetXml.TAG_PARAMETERS_NAME)))
119-
).inFile(xmlFile().withName(string().endsWith(ModuleWidgetXml.FILE_NAME))),
119+
).inFile(xmlFile().withName(string().matches(ModuleWidgetXml.FILE_NAME))),
120120
new PhpClassCompletionProvider()
121121
);
122122

0 commit comments

Comments
 (0)