mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEADEV-20543. Do not report hits in binary files for word index, even if somehow indexed.
This commit is contained in:
@@ -70,12 +70,14 @@ public class IndexCacheManagerImpl implements CacheManager{
|
||||
return ApplicationManager.getApplication().runReadAction(new Computable<Boolean>() {
|
||||
public Boolean compute() {
|
||||
if (scope.contains(virtualFile) && (index.isInContent(virtualFile) || index.isInLibrarySource(virtualFile))) {
|
||||
if (virtualFile.getFileType().isBinary()) return Boolean.TRUE;
|
||||
|
||||
final PsiFile psiFile = myPsiManager.findFile(virtualFile);
|
||||
return psiFile == null || psiFileProcessor.process(psiFile);
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
});
|
||||
}).booleanValue();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user