From 1097586000ea802fa475d33cc48057c5a3119cf5 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Thu, 26 May 2016 20:08:48 +0300 Subject: [PATCH] inspection toolwindow: carefully extract possible calculation scope for "run inspection on" action IDEA-156669 --- .../codeInspection/ui/actions/KeyAwareInspectionViewAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/actions/KeyAwareInspectionViewAction.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/actions/KeyAwareInspectionViewAction.java index 685b87989b8e..f39a33728613 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/actions/KeyAwareInspectionViewAction.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/actions/KeyAwareInspectionViewAction.java @@ -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);