ensure correct PSI containing file in multi-root files folding (IDEA-145592)

This commit is contained in:
peter
2015-09-28 15:43:04 +02:00
parent c5ec2548c4
commit bbaf394517
@@ -133,7 +133,7 @@ class UpdateFoldRegionsOperation implements Runnable {
continue;
}
info.addRegion(region, smartPointerManager.createSmartPsiElementPointer(psi, myFile));
info.addRegion(region, smartPointerManager.createSmartPsiElementPointer(psi));
newRegions.add(region);
boolean expandStatus = !descriptor.isNonExpandable() && shouldExpandNewRegion(element, range, rangeToExpandStatusMap);