added option to registry to enable search in project files

This commit is contained in:
nik
2011-02-11 09:12:45 +03:00
parent 330f5ab952
commit c24d15db6c
2 changed files with 4 additions and 1 deletions
@@ -45,6 +45,7 @@ import com.intellij.openapi.ui.MessageType;
import com.intellij.openapi.util.Computable;
import com.intellij.openapi.util.Factory;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.util.text.TrigramBuilder;
import com.intellij.openapi.vcs.FileStatus;
@@ -235,7 +236,7 @@ public class FindInProjectUtil {
long fileLength = getFileLength(virtualFile);
if (fileLength == -1) continue; // Binary or invalid
if (ProjectUtil.isProjectOrWorkspaceFile(virtualFile)) continue;
if (ProjectUtil.isProjectOrWorkspaceFile(virtualFile) && !Registry.is("find.search.in.project.files")) continue;
if (fileLength > SINGLE_FILE_SIZE_LIMIT) {
largeFiles.add(psiFile);
@@ -104,6 +104,8 @@ psi.incremental.reparse.depth.limit=1000
psi.viewer.selection.color=0,153,153
psi.deferIconLoading=true
find.search.in.project.files=false
structureView.coalesceTime=500
jar.build=false