mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
highlighting: do not report elements as unused if they may have usages in unloaded modules (IDEA-27471)
This commit is contained in:
@@ -926,6 +926,10 @@ public class PsiSearchHelperImpl implements PsiSearchHelper {
|
||||
@NotNull final GlobalSearchScope scope,
|
||||
@Nullable final PsiFile fileToIgnoreOccurrencesIn,
|
||||
@Nullable final ProgressIndicator progress) {
|
||||
if (!ReadAction.compute(() -> scope.getUnloadedModulesBelongingToScope().isEmpty())) {
|
||||
return SearchCostResult.TOO_MANY_OCCURRENCES;
|
||||
}
|
||||
|
||||
final AtomicInteger count = new AtomicInteger();
|
||||
final ProgressIndicator indicator = progress == null ? new EmptyProgressIndicator() : progress;
|
||||
final Processor<VirtualFile> processor = new Processor<VirtualFile>() {
|
||||
|
||||
Reference in New Issue
Block a user