theme-tools
theme-tools copied to clipboard
Support `content_for` block `closest.metaobject` param completion
Is your feature request related to a problem? Please describe.
This feature was generated by this comment.
Describe the solution you'd like
Most context.* params are static. However, metaobjects are dynamically defined on the shop-level. When you want to auto-complete that param, you must first fetch metaobjects from the shop.
{% content_for "block", id: 5, context.metaobject.foo█ %} -> `foobar`
NOTE: This will require metaobject completion before starting this ticket.
Checklist
- [x] I have checked and made sure that the proposal adheres to this plugin's principles