redhat-developer / quarkus-ls

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

"Insert required input forms" overwrites existing content of `{#form}` section #829

Open datho7561 opened 1 year ago

datho7561 commented 1 year ago

To reproduce the bug:

  1. Open https://github.com/FroMage/quarkus-renarde-todo/blob/7784cba6de7f31e937726eec6725df3c95eca1f6/src/main/resources/templates/Login/login.html#L22
  2. Open quick fixes for the {#form} on line 22
  3. Select "Insert required input forms"

Expected: I don't expect the "Missing expected input(s): userName" warning to appear at all, since the <input> tag is declared in one of the included user tags. However, I understand this is a complex to detect. In the case that the <input> was actually not included, I would expect the <input> tag to be appended at the end of the section.

Actual: the entire content of the {#form} section is replaced with one <input></input> HTML tag.