diff --git a/src/main/java/fr/adrienbrault/idea/symfony2plugin/Settings.java b/src/main/java/fr/adrienbrault/idea/symfony2plugin/Settings.java index 0db5ddbef..cdddb35ce 100644 --- a/src/main/java/fr/adrienbrault/idea/symfony2plugin/Settings.java +++ b/src/main/java/fr/adrienbrault/idea/symfony2plugin/Settings.java @@ -61,7 +61,7 @@ public class Settings implements PersistentStateComponent { public boolean codeFoldingTwigConstant = true; public boolean featureTwigIcon = true; - public boolean twigBundleNamespaceSupport = true; + public boolean twigBundleNamespaceSupport = false; public boolean dismissEnableNotification = false; diff --git a/src/main/java/fr/adrienbrault/idea/symfony2plugin/ui/TwigSettingsForm.form b/src/main/java/fr/adrienbrault/idea/symfony2plugin/ui/TwigSettingsForm.form index 430650a1d..33df0d50f 100644 --- a/src/main/java/fr/adrienbrault/idea/symfony2plugin/ui/TwigSettingsForm.form +++ b/src/main/java/fr/adrienbrault/idea/symfony2plugin/ui/TwigSettingsForm.form @@ -60,7 +60,7 @@ - + diff --git a/src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/templating/path/BundleTwigNamespaceExtensionTest.java b/src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/templating/path/BundleTwigNamespaceExtensionTest.java index 4f6887d81..457768204 100644 --- a/src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/templating/path/BundleTwigNamespaceExtensionTest.java +++ b/src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/templating/path/BundleTwigNamespaceExtensionTest.java @@ -3,6 +3,7 @@ import com.intellij.openapi.vfs.VirtualFile; import com.intellij.testFramework.VfsTestUtil; import com.intellij.util.containers.ContainerUtil; +import fr.adrienbrault.idea.symfony2plugin.Settings; import fr.adrienbrault.idea.symfony2plugin.extension.TwigNamespaceExtensionParameter; import fr.adrienbrault.idea.symfony2plugin.templating.path.BundleTwigNamespaceExtension; import fr.adrienbrault.idea.symfony2plugin.templating.path.TwigPath; @@ -28,6 +29,8 @@ public String getTestDataPath() { } public void testThatBundleNamespacesAreAdded() { + Settings.getInstance(getProject()).twigBundleNamespaceSupport = true; + Collection namespaces = new BundleTwigNamespaceExtension() .getNamespaces(new TwigNamespaceExtensionParameter(getProject()));