IDEA-77809: Error parsing JSTL in JSP page after loading project: collecting includes in dumb mode is relaxed

This commit is contained in:
Dmitry Avdeev
2012-02-14 14:40:22 +04:00
parent 83e89182f3
commit 01fc9027e0
@@ -1327,7 +1327,9 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
((PsiFileImpl)myFile).calcTreeElement(); //to load text
//to initialize caches
CacheManager.SERVICE.getInstance(project).getFilesWithWord(XXX, UsageSearchContext.IN_COMMENTS, GlobalSearchScope.allScope(project), true);
if (!DumbService.isDumb(project)) {
CacheManager.SERVICE.getInstance(project).getFilesWithWord(XXX, UsageSearchContext.IN_COMMENTS, GlobalSearchScope.allScope(project), true);
}
List<HighlightInfo> infos;
try {