Revert "Handle PCE in PropertyFoldingBuilder (IDEA-232433)"

This reverts commit 7759e5b2

GitOrigin-RevId: c02211b12e5cf66cfbea0267b67625a1076ee4e7
This commit is contained in:
Dmitry Jemerov
2020-03-10 09:34:33 +00:00
committed by intellij-monorepo-bot
parent f6231edb77
commit 0e43a38d6c
@@ -13,7 +13,6 @@ import com.intellij.lang.properties.psi.Property;
import com.intellij.lang.properties.psi.impl.PropertyImpl;
import com.intellij.lang.properties.psi.impl.PropertyStubImpl;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.util.Couple;
import com.intellij.openapi.util.Key;
@@ -287,14 +286,7 @@ public class PropertyFoldingBuilder extends FoldingBuilderEx {
if (property == NULL) return false;
if (property != null) return true;
final boolean isI18n;
try {
isI18n = JavaI18nUtil.mustBePropertyKey(expr, null);
}
catch (ProcessCanceledException e) {
return false;
}
final boolean isI18n = JavaI18nUtil.mustBePropertyKey(expr, null);
if (!isI18n) {
sourcePsi.putUserData(CACHE, NULL);
}