mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fast return in case of empty scope
e.g. it may be the case when trying to find Groovy usages in a non-groovy file #SCL-16771 GitOrigin-RevId: a2a604369343164a39e8db32541b3fdfcd2297d3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
244be8b378
commit
68df2df462
@@ -30,6 +30,10 @@ public class AllClassesSearchExecutor implements QueryExecutor<PsiClass, AllClas
|
||||
public boolean execute(@NotNull final AllClassesSearch.SearchParameters queryParameters, @NotNull final Processor<? super PsiClass> consumer) {
|
||||
SearchScope scope = queryParameters.getScope();
|
||||
|
||||
if (scope == GlobalSearchScope.EMPTY_SCOPE) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (scope instanceof GlobalSearchScope) {
|
||||
PsiManager manager = PsiManager.getInstance(queryParameters.getProject());
|
||||
manager.startBatchFilesProcessingMode();
|
||||
|
||||
Reference in New Issue
Block a user