redhat-developer / redhat-developer/quarkus-ls

Don't show snippets for user tags with spaces in name

Open
#787 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.