From e5b37153d2889d99584c76649ac86af8fef8493a Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Thu, 21 Nov 2019 16:38:11 +0300 Subject: [PATCH] mark ReferenceImporter as dynamic GitOrigin-RevId: 2aa8b179ab6457c85cc487374dfa54227e7fda54 --- .../intellij/codeInsight/daemon/impl/ShowAutoImportPass.java | 3 +-- .../platform-resources/src/META-INF/LangExtensionPoints.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowAutoImportPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowAutoImportPass.java index a7935955513b..c9ba62a5e6fe 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowAutoImportPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowAutoImportPass.java @@ -101,14 +101,13 @@ public class ShowAutoImportPass extends TextEditorHighlightingPass { return true; }); - List importers = ReferenceImporter.EP_NAME.getExtensionList(); for (HighlightInfo info : infos) { for (HintAction action : extractHints(info)) { if (action.isAvailable(myProject, myEditor, myFile) && action.fixSilently(myEditor)) { break; } } - for(ReferenceImporter importer: importers) { + for (ReferenceImporter importer: ReferenceImporter.EP_NAME.getExtensionList()) { //noinspection deprecation if (importer.autoImportReferenceAt(myEditor, myFile, info.getActualStartOffset())) break; } diff --git a/platform/platform-resources/src/META-INF/LangExtensionPoints.xml b/platform/platform-resources/src/META-INF/LangExtensionPoints.xml index febedffdcea2..5ae01d6f02cf 100644 --- a/platform/platform-resources/src/META-INF/LangExtensionPoints.xml +++ b/platform/platform-resources/src/META-INF/LangExtensionPoints.xml @@ -403,7 +403,7 @@ - +