redhat-developer / redhat-developer/quarkus-ls
Don't show snippets for user tags with spaces in name
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 50
- Forks
- 18
- Avg merge
- 22h 11m
- Merged PRs (30d)
- 3
Description
If you have a user tag with spaces in it's name, like:
src/main/resources/templates/tags/my tag.html
Then a snippet for my tag appears. When you apply the snippet, qute-ls reports that the generated code is an error.
It's not clear from the Qute documentation what should be done in this case, however accepting the snippet and trying to render the template results in an error. Also, trying variations on the name like my-tag, mytag, myTag still results in the template failing to render. I think we should avoid suggesting completions for any user tags with spaces in their name.
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
Start by tracing qute-ls completion handling for user tags, using the example template path src/main/resources/templates/tags/my tag.html as the reproduction case. Verify that tags whose names contain spaces are excluded from suggested snippets and that the resulting completion behavior no longer produces invalid generated code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100