From 1de02e61933bf0f0b49bf77d2cb28031b188cc85 Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Tue, 3 Dec 2019 22:01:23 +0300 Subject: [PATCH] drop caches in GotoSymbolModel2 on cr-IDEA-952 GitOrigin-RevId: 0a7f851bffeaf4f36ef78b09ccd1b7a65ff9a180 --- .../intellij/ide/util/gotoByName/GotoSymbolModel2.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoSymbolModel2.java b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoSymbolModel2.java index 0d0e3eb506c5..a687d71fc7cd 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoSymbolModel2.java +++ b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoSymbolModel2.java @@ -26,11 +26,20 @@ public class GotoSymbolModel2 extends FilteringGotoByModel { public GotoSymbolModel2(@NotNull Project project, @NotNull ChooseByNameContributor[] contributors) { super(project, contributors); myAllContributors = false; + addEpListener(project); } public GotoSymbolModel2(@NotNull Project project) { super(project, new ChooseByNameContributor[0]); myAllContributors = true; + addEpListener(project); + } + + private void addEpListener(@NotNull Project project) { + ChooseByNameContributor.CLASS_EP_NAME.addExtensionPointListener( + (e, pd) -> { mySeparators = null; }, + (e, pd) -> { mySeparators = null; }, + project); } @Override