Take a simple block in a theme app extension:
<script src="{{ 'foo.js' | asset_url }}" defer></script>
{{ 'foo.css' | asset_url | stylesheet_tag }}
{% schema %}
{
"name": "Get Foo",
"target": "section",
"enabled_on": {
"templates": ["product", "metaobject"]
}
}
{% endschema %}
According to the docs as of right now, November 23, 2023, I can target a section, and my templates for this are product and metaobject, both valid.
So in my VSCode editor where is conjure up this stuff, it is telling that target is not allowed in the schema, and metaobject is not allowed in the templates. Why is that? What is out of date in VSCode to be prompting that?
Also, when this code is in fact added to a block in a Metaobject theme template, it indeed fails to render at all. A major bug as far as I am concerned. Has not worked correctly in many months, but does work on product templates.