theme-tools icon indicating copy to clipboard operation
theme-tools copied to clipboard

`group` suggested in wrong place when building a `select` schema setting

Open david-w-shopify opened this issue 11 months ago • 0 comments

Describe the bug When building a select setting in a section/block schema, the group key is surfaced in intellisense at the root setting level, instead of the option level, where it is valid.

Just to make sure, I tried adding group to the root of the setting and got an error from the CLI.

Source

{% schema %}
{
  "name": "Section",
  "settings": [
    {
      "type": "select"
      "id": "select",
      "label": "Select",
      "" // group is suggested here
      "options": [
        {
          "label": "Option",
          "value": "option",
          "" // group is not suggested here
        }
      ]
    }
  ]
}
{% endschema %}

Expected behaviour group key is not suggested when I try to add a property at the same level as "label": "Select", and is suggested when I try to add a property at the same level as "value": "option".

Actual behaviour Image

Image

Debugging information

  • OS: Mac
  • OS Version: Sequoia 15.2
  • Extension Version: 3.5.1

david-w-shopify avatar Jan 23 '25 10:01 david-w-shopify