redhat-developer / redhat-developer/quarkus-ls

Snippets for sections always add a close section tag

Open
#830 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug completion qute
Dominant language
Java
Stars
50
Forks
18
Avg merge
22h 11m
Merged PRs (30d)
3

Description

If you do completion here:

{#|

{/}

Then complete with the if option, no closing tag will be created (since there is an existing one).

However, if you do:

if|

{/}

and apply the completion, then a closing {/if} will be generated. This is because it's a snippet instead of "real" completion.

It would be nice if we could also avoid adding the closing {/if} when we complete from if.

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

No file or test is named in the issue. Start by tracing Qute snippet completion for the if option, comparing it with completion from an existing {# section. Done means completing if does not add {/if} when an existing closing section tag is already present.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.