From d26d0b18f816f34559de658bc104f89a23d1d82c Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Thu, 25 Mar 2010 20:22:05 +0300 Subject: [PATCH] when searching for todo items in a file, limit index update scope to this file (IDEA-53228) --- .../com/intellij/psi/impl/cache/impl/IndexCacheManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/psi/impl/cache/impl/IndexCacheManagerImpl.java b/platform/lang-impl/src/com/intellij/psi/impl/cache/impl/IndexCacheManagerImpl.java index cecbef3dcdaa..17c8b6dafdba 100644 --- a/platform/lang-impl/src/com/intellij/psi/impl/cache/impl/IndexCacheManagerImpl.java +++ b/platform/lang-impl/src/com/intellij/psi/impl/cache/impl/IndexCacheManagerImpl.java @@ -181,7 +181,7 @@ public class IndexCacheManagerImpl implements CacheManager{ count[0] += value.intValue(); return true; } - }, GlobalSearchScope.allScope(myProject)); + }, GlobalSearchScope.fileScope(myProject, file)); return count[0]; }