redhat-developer / quarkus-ls

Language server for Quarkus tooling
Eclipse Public License 2.0
43 stars 15 forks source link

Completion should generate only start section when empty end section is found #805

Closed angelozerr closed 1 year ago

angelozerr commented 1 year ago

To support correctly surround with tag section, we need generate only start section when empty end section is found.

Given this template

{#}

completion shows for, etc, after for item apply, it generates:

{#for item in items}
  {item.name}
{/for}

Given this template which contains an empty orphan end section:

{#}
{\}

completion shows for, etc, after for item apply, it SHOULD generate:

{#for item in items}
{\}

@JessicaJHee I'm working on this issue.