Skip to content

Support {% render 'snippet', %} named argument completion #475

@stijns96

Description

@stijns96

Is your feature request related to a problem? Please describe.
I always have to check the self written documentation in my snippets to see what props I can pass to my snippet.

Describe the solution you'd like
I was thinking about something like this.

{% prop source = object | required: true %}
{% prop width = number | required: true | default: 768 %}

{%- liquid
  prop source = object | required: true
  prop width = number | required: true | default: 768
-%}

I know this image now shows the source autocomplete from HTML, but this could be an autocomplete/suggestion from Liquid. It works a little bit like typescript, but then for liquid.

Image

At this point I'm not sure if this will work for liquid, but it's just a suggestion that I'd like to see.

Checklist

  • I have checked and made sure that the proposal adheres to this plugin's principles

Metadata

Metadata

Assignees

No one assigned

    Labels

    Severity: 4theme bugs that won't be prioritized in the near futurearea:theme-checkenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions