Skip to content

Commit b19b7f5

Browse files
Merge pull request #942 from doninAtwix/941-uicomponent-integration-check
941: added integration enabled check for uiComponent
2 parents eef69c5 + bed56a5 commit b19b7f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/com/magento/idea/magento2plugin/lang/injection/UiComponentSyntaxInjector.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.intellij.psi.html.HtmlTag;
1515
import com.intellij.psi.templateLanguages.OuterLanguageElement;
1616
import com.intellij.psi.xml.XmlText;
17+
import com.magento.idea.magento2plugin.project.Settings;
1718
import java.util.List;
1819
import org.jetbrains.annotations.NotNull;
1920

@@ -25,6 +26,10 @@ public void getLanguagesToInject(
2526
final @NotNull MultiHostRegistrar registrar,
2627
final @NotNull PsiElement host
2728
) {
29+
if (!Settings.isEnabled(host.getProject())) {
30+
return;
31+
}
32+
2833
if (!isUiComponentTag(host)) {
2934
return;
3035
}

0 commit comments

Comments
 (0)