revert 2bd96de1a3d0c6486397dd10c2bb98ad3326205c to avoid performance problem calculat...
authorMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Mon, 19 Jan 2015 19:40:57 +0000 (20:40 +0100)
committerMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Mon, 19 Jan 2015 19:40:57 +0000 (20:40 +0100)
platform/core-api/src/com/intellij/openapi/roots/FileIndexFacade.java

index 96dde81c6a80f85ce44a368ec88650bbe014944e..8f0dce494eace410ab87094a69bcda57b9946ee0 100644 (file)
@@ -61,7 +61,7 @@ public abstract class FileIndexFacade {
   public abstract boolean isValidAncestor(@NotNull VirtualFile baseDir, @NotNull VirtualFile child);
 
   public boolean shouldBeFound(GlobalSearchScope scope, VirtualFile virtualFile) {
-    return (scope.isSearchOutsideRootModel() || isInContent(virtualFile) || isInLibrarySource(virtualFile)) && !virtualFile.getFileType().isBinary();
+    return scope.isSearchOutsideRootModel() || isInContent(virtualFile) || isInLibrarySource(virtualFile);
   }
 
   @NotNull public abstract ModificationTracker getRootModificationTracker();