Describe the bug / Actual
:+1: Global objects used with paginate are suggested …
:-1: … but attributes of a specific object are not suggested.
Expected
Attributes of specific objects (e.g. customer.orders) should be suggested too.
Debugging information
OS: macOS
Version: 1.12.0
Additional contextLiquid::Template.parse(markup) in VariableLookupFinder will raise an error, as it doesn't know paginate.
This problem could be solved with TolerantParser::Template.parse(markup).
However, the resulting tag is much "lighter" and might not contain all the relevant information.
In the screenshot, you see the debug output of paginate customer.orders vs. echo customer.orders.
Describe the bug / Actual :+1: Global objects used with
paginate
are suggested …:-1: … but attributes of a specific object are not suggested.
Expected Attributes of specific objects (e.g.
customer.orders
) should be suggested too.Debugging information
Additional context
Liquid::Template.parse(markup)
inVariableLookupFinder
will raise an error, as it doesn't knowpaginate
. This problem could be solved withTolerantParser::Template.parse(markup)
. However, the resulting tag is much "lighter" and might not contain all the relevant information.In the screenshot, you see the debug output of
paginate customer.orders
vs.echo customer.orders
.Outsourced from #683