We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b19b7f5 commit 43d63e2Copy full SHA for 43d63e2
src/com/magento/idea/magento2plugin/lang/psi/search/MagentoSearchScopesProvider.java
@@ -10,6 +10,7 @@
10
import com.intellij.openapi.util.NlsContexts;
11
import com.intellij.psi.search.SearchScope;
12
import com.intellij.psi.search.SearchScopeProvider;
13
+import com.magento.idea.magento2plugin.project.Settings;
14
import java.util.Collections;
15
import java.util.List;
16
import org.jetbrains.annotations.NotNull;
@@ -27,6 +28,10 @@ public class MagentoSearchScopesProvider implements SearchScopeProvider {
27
28
final @NotNull Project project,
29
final @NotNull DataContext dataContext
30
) {
31
+ if (!Settings.isEnabled(project)) {
32
+ return Collections.emptyList();
33
+ }
34
+
35
return Collections.singletonList(AllFilesExceptTestsScope.getInstance(project));
36
}
37
0 commit comments