enable slow findClass in paste (EA-65014 - INRE: FileBasedIndexImpl.handleDumbMode)
authorpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 11:49:25 +0000 (12:49 +0100)
committerpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 15:18:43 +0000 (16:18 +0100)
platform/lang-impl/src/com/intellij/codeInsight/editorActions/PasteHandler.java

index 0fcccb7c742e422e6f83d81476548bfc2faa7fa6..cf841294dc27e8fbb89e8dac409906bd00e223a7 100644 (file)
@@ -116,6 +116,7 @@ public class PasteHandler extends EditorActionHandler implements EditorTextInser
       return;
     }
 
+    DumbService.getInstance(project).setAlternativeResolveEnabled(true);
     document.startGuardedBlockChecking();
     try {
       for (PasteProvider provider : Extensions.getExtensions(EP_NAME)) {
@@ -131,6 +132,7 @@ public class PasteHandler extends EditorActionHandler implements EditorTextInser
     }
     finally {
       document.stopGuardedBlockChecking();
+      DumbService.getInstance(project).setAlternativeResolveEnabled(false);
     }
   }