CPP-13742 Remove double caching for test location after IDEA-CR-35199 platform fix

This commit is contained in:
Alexey Utkin
2018-07-24 19:22:08 +03:00
parent 14f169e376
commit 82367ab25d
@@ -263,6 +263,8 @@ public class SMTestProxy extends AbstractTestProxy {
if (myLocationMapCachedValue == null) {
myLocationMapCachedValue = CachedValuesManager.getManager(project).createCachedValue(() -> {
Map<GlobalSearchScope, Ref<Location>> value = ContainerUtil.newConcurrentMap(1);
// we need `put` here to has actual counts of modification tracker AFTER `getLocation` call
value.put(searchScope, Ref.create(getLocation(project, searchScope, myLocationUrl)));
return CachedValueProvider.Result.create(value, myLocator.getLocationCacheModificationTracker(project));
}, false);
}