redhat-developer / redhat-developer/quarkus-ls
"Insert required input forms" overwrites existing content of `{#form}` section
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 50
- Forks
- 18
- Avg merge
- 22h 11m
- Merged PRs (30d)
- 3
Description
To reproduce the bug:
- Open https://github.com/FroMage/quarkus-renarde-todo/blob/7784cba6de7f31e937726eec6725df3c95eca1f6/src/main/resources/templates/Login/login.html#L22
- Open quick fixes for the
{#form}on line 22 - 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the quick fix on src/main/resources/templates/Login/login.html at line 22, using the referenced repository revision. Start with the "Insert required input forms" action and inspect how it handles the existing {#form} section and included user tags. Done means missing inputs are appended without replacing existing section content, while included inputs do not produce a warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100