don't use GetChildrenHack for Node RCs

This commit is contained in:
Vladimir Krivosheev
2014-12-02 09:55:48 +01:00
parent b7d573e72f
commit dde09688e3
@@ -123,7 +123,11 @@ public abstract class XValueContainerNode<ValueContainer extends XValueContainer
}
RunProfile runProfile = LangDataKeys.RUN_PROFILE.getData(DataManager.getInstance().getDataContext(tree));
return !(runProfile instanceof RunConfiguration && ((RunConfiguration)runProfile).getType().getDisplayName().startsWith("JavaScript"));
if (runProfile instanceof RunConfiguration) {
String id = ((RunConfiguration)runProfile).getType().getId();
return !(id.startsWith("Javascript") || id.startsWith("Node"));
}
return true;
}
@Nullable