mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CPP-13742 Remove double caching for test location after IDEA-CR-35199 platform fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user