Describe the bug
Intelligent Code Completion does not support collection retrieved via its name.
Therefore, collections.first.products is supported, but collections['sale-potions'].products isn't.
Expected
In the example …
{% for x in collections['sale-potions'].products %}
{{- x.█
… x should be treated as a product, so that suggestions for product (available, collections, compare_at_price, …) are displayed at the cursor's position.
Actual
x seems to be treated as a collection, so that suggestions for collection are displayed.
Created by https://github.com/Shopify/theme-liquid-docs/issues/18
Describe the bug Intelligent Code Completion does not support collection retrieved via its name. Therefore,
collections.first.products
is supported, butcollections['sale-potions'].products
isn't.Expected In the example …
…
x
should be treated as aproduct
, so that suggestions forproduct
(available
,collections
,compare_at_price
, …) are displayed at the cursor's position.Actual![Wrong suggestions](https://user-images.githubusercontent.com/12963280/207047949-3ec19dfb-d2d5-414e-a512-6c83364f743b.jpg)
x
seems to be treated as acollection
, so that suggestions forcollection
are displayed.