don't search for text occurrences in large files (EA-38447)

This commit is contained in:
peter
2012-10-09 16:50:08 +02:00
parent afe0e0d29f
commit 93013a9bfd
@@ -386,6 +386,7 @@ public class PsiSearchHelperImpl implements PsiSearchHelper {
for (int i = 0; i < files.length; i++) {
if (progress != null) progress.checkCanceled();
final PsiFile psiFile = files[i];
if (psiFile instanceof PsiBinaryFile) continue;
ApplicationManager.getApplication().runReadAction(new Runnable() {
@Override