redhat-developer / quarkus-ls

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

CodeActions to resolve syntax errors related to sections #821

Closed datho7561 closed 1 year ago

datho7561 commented 1 year ago

In https://github.com/redhat-developer/quarkus-ls/pull/820, Angelo added the ability to report syntax errors related to unclosed sections with the proper error range. Because of this change, it should be easier to implement code actions to resolve these syntax errors. eg.

{#if variable}

we could have a code action to generate

{#if variable}

{/if}

or

{#if variable}

{/else}

we could have a code action to switch to

{#if variable}

{/if}