File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/com/magento/idea/magento2plugin/lang/psi/search Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1010import com .intellij .openapi .util .NlsContexts ;
1111import com .intellij .psi .search .SearchScope ;
1212import com .intellij .psi .search .SearchScopeProvider ;
13+ import com .magento .idea .magento2plugin .project .Settings ;
1314import java .util .Collections ;
1415import java .util .List ;
1516import org .jetbrains .annotations .NotNull ;
@@ -27,6 +28,10 @@ public class MagentoSearchScopesProvider implements SearchScopeProvider {
2728 final @ NotNull Project project ,
2829 final @ NotNull DataContext dataContext
2930 ) {
31+ if (!Settings .isEnabled (project )) {
32+ return Collections .emptyList ();
33+ }
34+
3035 return Collections .singletonList (AllFilesExceptTestsScope .getInstance (project ));
3136 }
3237}
You can’t perform that action at this time.
0 commit comments