R#8 : does IDeclarationsCache & CacheManager still exist

Can you give me pointer to what has replaced IDeclarationsCache and CacheManager() off IPsiServices in resharper 8 please ?                        IDeclarationsCache declarationsCache = solution.GetPsiServices().CacheManager.GetDeclarationsCache(DeclarationCacheLibraryScope.NONE, false);             var results=declarationsCache.GetElementsByShortName(classNameToFind).ToList();
1 comment
Comment actions Permalink

Got it..     

var declarationsCache = solution.GetPsiServices().Symbols.GetSymbolScope(LibrarySymbolScope.FULL, false, currentProject.GetResolveContext());              
ITypeElement declaredElement = declarationsCache.GetTypeElementByCLRName(clrTypeClassName);

Note to Jetbrains : the following page needs updating
http://confluence.jetbrains.com/display/ReSharper/4.01+Caches+%28R8%29

0

Please sign in to leave a comment.