Add clarifying comment (IDEA-CR-57121)

GitOrigin-RevId: 75ee7d892786a41ddb47889da242f0dcfe3262e2
This commit is contained in:
Dmitry Jemerov
2020-01-09 18:07:13 +00:00
committed by intellij-monorepo-bot
parent 0409f037fd
commit 7f7348b46e
@@ -56,6 +56,8 @@ public final class ResolveScopeManagerImpl extends ResolveScopeManager {
ContainerUtil::createConcurrentWeakKeySoftValueMap);
((PsiManagerImpl)myManager).registerRunnableToRunOnChange(myDefaultResolveScopesCache::clear);
// Make it explicit that registering and removing ResolveScopeProviders needs to clear the resolve scope cache
// (even though normally registerRunnableToRunOnChange would be enough to clear the cache)
ResolveScopeProvider.EP_NAME.addExtensionPointListener(() -> myDefaultResolveScopesCache.clear(), project);
}