inspection toolwindow: carefully extract possible calculation scope for "run inspecti...
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Thu, 26 May 2016 17:08:48 +0000 (20:08 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Thu, 26 May 2016 17:43:20 +0000 (20:43 +0300)
platform/lang-impl/src/com/intellij/codeInspection/ui/actions/KeyAwareInspectionViewAction.java

index 685b87989b8e6bdac9de4fcff95e00ed0718e722..f39a33728613f88a5d0de619c5c6507ef6cee6ee 100644 (file)
@@ -165,7 +165,7 @@ public abstract class KeyAwareInspectionViewAction extends InspectionViewActionB
       switch (files.size()) {
         case 0:
           context = null;
-          scope = new AnalysisScope(view.getProject());
+          scope = view.getScope();
           break;
         case 1:
           final PsiFile theFile = ContainerUtil.getFirstItem(files);