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 10
10
import com .intellij .openapi .util .NlsContexts ;
11
11
import com .intellij .psi .search .SearchScope ;
12
12
import com .intellij .psi .search .SearchScopeProvider ;
13
+ import com .magento .idea .magento2plugin .project .Settings ;
13
14
import java .util .Collections ;
14
15
import java .util .List ;
15
16
import org .jetbrains .annotations .NotNull ;
@@ -27,6 +28,10 @@ public class MagentoSearchScopesProvider implements SearchScopeProvider {
27
28
final @ NotNull Project project ,
28
29
final @ NotNull DataContext dataContext
29
30
) {
31
+ if (!Settings .isEnabled (project )) {
32
+ return Collections .emptyList ();
33
+ }
34
+
30
35
return Collections .singletonList (AllFilesExceptTestsScope .getInstance (project ));
31
36
}
32
37
}
You can’t perform that action at this time.
0 commit comments