theme-tools
theme-tools copied to clipboard
`group` suggested in wrong place when building a `select` schema setting
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
Debugging information
- OS: Mac
- OS Version: Sequoia 15.2
- Extension Version: 3.5.1