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();
Please sign in to leave a comment.
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