inspection toolwindow: carefully extract possible calculation scope for "run inspection on" action IDEA-156669

This commit is contained in:
Dmitry Batkovich
2016-05-26 20:43:20 +03:00
parent 588db45647
commit 1097586000
@@ -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);