redhat-developer / quarkus-ls

Language server for Quarkus tooling
Eclipse Public License 2.0
43 stars 15 forks source link

CodeAction to insert required user tag parameters #797

Closed angelozerr closed 1 year ago

angelozerr commented 1 year ago

Given this user tag src/main/resources/templates/tags/input.html:

<input name="{name}" class="{class}" >

Given this qute template src/main/resources/templates/test.html which uses the input.html user tag:

{#input /}

The validation reports error for missing name and class parameters:

image

It should be nice to provide a code action which insert the required parameters. After the apply of the code action we should have:

{#input name="name" class="class" /}

@JessicaJHee do you want to work on this issue?