fix dom leaks to unloaded plugins (IDEA-242155, IDEA-242151)

GitOrigin-RevId: c58f5fe69ef8b8cee36cd4f5ba700ef378899a68
This commit is contained in:
Peter Gromov
2020-05-29 22:27:15 +03:00
committed by intellij-monorepo-bot
parent d05e1123bc
commit 8b47486ba9
2 changed files with 4 additions and 0 deletions
@@ -72,6 +72,8 @@ public class ConverterManagerImpl implements ConverterManager {
mySimpleConverters.put(String.class, Converter.EMPTY_CONVERTER);
mySimpleConverters.put(Object.class, Converter.EMPTY_CONVERTER);
mySimpleConverters.put(PathReference.class, PathReferenceConverter.INSTANCE);
DomImplementationClassEP.CONVERTER_EP_NAME.addChangeListener(() -> myConverterInstances.clear(), null);
}
protected void addConverter(Class clazz, Converter converter) {
@@ -83,6 +83,8 @@ public final class DomApplicationComponent {
myInvocationCaches.clear();
assignabilityCache.clear();
myVisitorDescriptions.clear();
registerDescriptions();
}