enable slow findClass in parameter info (EA-65015 - INRE: FileBasedIndexImpl.handleDu...
authorpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 11:48:03 +0000 (12:48 +0100)
committerpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 15:18:42 +0000 (16:18 +0100)
platform/lang-impl/src/com/intellij/codeInsight/hint/ShowParameterInfoHandler.java

index 04db9762fdfe81e3ecbcb4a2538134b55555b300..5c71a3191a5785b908a52bbf8675a79b35887668 100644 (file)
@@ -91,12 +91,18 @@ public class ShowParameterInfoHandler implements CodeInsightActionHandler {
       return;
     }
 
-    for (ParameterInfoHandler<Object, ?> handler : handlers) {
-      Object element = handler.findElementForParameterInfo(context);
-      if (element != null) {
-        handler.showParameterInfo(element, context);
+    DumbService.getInstance(project).setAlternativeResolveEnabled(true);
+    try {
+      for (ParameterInfoHandler<Object, ?> handler : handlers) {
+        Object element = handler.findElementForParameterInfo(context);
+        if (element != null) {
+          handler.showParameterInfo(element, context);
+        }
       }
     }
+    finally {
+      DumbService.getInstance(project).setAlternativeResolveEnabled(false);
+    }
   }
 
   private static void showLookupEditorHint(Object[] descriptors, final Editor editor, final Project project, ParameterInfoHandler handler) {