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

`recommendations` is an object that is available to the Section Rendering API

Open charlespwd opened this issue 1 year ago • 1 comments

Describe the bug recommendations is an object that is available to the Section Rendering API, this means that Theme App Extensions also have access to it. We need to figure out a way to not throw an error/complete it in TAE blocks.

Source

{{ recommendations }}

Expected behaviour Completion/hover works in blocks/*.liquid files for a TAE

Actual behaviour Theme check error

charlespwd avatar Apr 15 '24 11:04 charlespwd

This issue is actually now exhibited with LiquidDoc. If you define a {% doc %} block, the linter will detect recommendations as an unknown object, despite being a global object:

Image

bakura10 avatar Jul 10 '25 14:07 bakura10