redhat-developer / redhat-developer/vscode-quarkus

Improve Qute self-closing tags support

Open
#596 4 comments 0 reactions 1 assignee View on GitHub

@angelozerr is already working on this.

Since Mar 21, 2023.

enhancement qute
Dominant language
TypeScript
Stars
79
Forks
31
Avg merge
12h 51m
Merged PRs (30d)
6

Description

In a Qute template, if you start typing {#inclu and select completion, the following is inserted:

{#include template}

{/include} 

It'd be nice to remove the closing tag if the user adds the self-closing slash after the template name ({#include template /}), while the tag content is empty, akin to self-closing tag behavior in vscode-xml.

There might be other specific tags where auto-close might be relevant (#insert? #fragment? ...), @mkouba or @FroMage may have some ideas

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.