Closed Poitrin closed 2 years ago
Fixes #659
Introduce the AssignmentsCompletionProvider to suggest variables
AssignmentsCompletionProvider
theme-check
{%- liquid assign product = all_products.first assign prod_uct = product %} {{ prod█ }}
prod
product
prod_uct
Add the following code below:
{%- liquid assign image1 = all_products.first.images.first %} {{ ima█ }}
ima
image1
WHY are these changes introduced?
Fixes #659
WHAT is this pull request doing?
Introduce the
AssignmentsCompletionProvider
to suggest variablesHow to test your changes?
theme-check
branch.prod
, do you see the following suggestions?product
only appear once? Doproduct
andprod_uct
display the correct description (namely the one about the globally available variableproduct
)?Add the following code below:
ima
, does it suggestimage1
?ima
in the first example (instead ofprod
), does it not suggestimage1
?