[properties] PropertiesReferenceManager: use runtime dependencies to resolve modules (IDEA-362731)

(cherry picked from commit d32fca2bd0d00fac37e379c757f841ab0d1253da)

IJ-CR-148878

GitOrigin-RevId: 25d34598b8b682db919573b8fb7a333f21bcdb58
This commit is contained in:
Tagir Valeev
2024-11-07 13:44:36 +01:00
committed by intellij-monorepo-bot
parent 13a8d6d4e1
commit 1b220a2199

View File

@@ -44,7 +44,7 @@ public final class PropertiesReferenceManager {
ConcurrentMap<String, List<PropertiesFile>> map =
CachedValuesManager.getManager(module.getProject()).getCachedValue(module, () -> {
ConcurrentMap<String, List<PropertiesFile>> factoryMap = ConcurrentFactoryMap.createMap(
bundleName1 -> findPropertiesFiles(GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module), bundleName1,
bundleName1 -> findPropertiesFiles(GlobalSearchScope.moduleRuntimeScope(module, true), bundleName1,
BundleNameEvaluator.DEFAULT));
return CachedValueProvider.Result.create(factoryMap, PsiModificationTracker.MODIFICATION_COUNT);
});