Skip to content

Add xml/autoInsert endpoint with autoClose and autoQuote support - #1849

Merged
datho7561 merged 1 commit into
eclipse-lemminx:mainfrom
angelozerr:feature/auto-insert
Sep 14, 2026
Merged

datho7561 merged 1 commit into
eclipse-lemminx:mainfrom
angelozerr:feature/auto-insert

Conversation

@angelozerr

@angelozerr angelozerr commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Replace xml/closeTag with a new xml/autoInsert custom LSP request that supports two kinds of auto-insertion:

The xml/closeTag endpoint is kept deprecated for backward compatibility with Eclipse IDE. AutoCloseTagResponse is deprecated in favor of the new AutoInsertResponse class.

Fixes #1505, #342

Here the vscode-xml PR redhat-developer/vscode-xml#1170

Here a demo:

AutoClose

@angelozerr
angelozerr force-pushed the feature/auto-insert branch 3 times, most recently from 472600c to 81147bb Compare September 12, 2026 17:21
@angelozerr
angelozerr marked this pull request as ready for review September 12, 2026 17:26
Replace xml/closeTag with a new xml/autoInsert custom LSP request that
supports two kinds of auto-insertion:
- autoClose: auto-close tags when typing '>' or '/' (existing behavior)
- autoQuote: auto-insert quotes after typing '=' for attribute values

The xml/closeTag endpoint is kept deprecated for backward compatibility
with Eclipse IDE. AutoCloseTagResponse is deprecated in favor of the new
AutoInsertResponse class.

Fixes eclipse-lemminx#1505, eclipse-lemminx#342

Signed-off-by: azerr <azerr@redhat.com>

@datho7561 datho7561 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Sorry, finished reviewing this a while ago then got distracted by vscode-javals. Still need to look through the client side though.

@datho7561
datho7561 merged commit 7de99a9 into eclipse-lemminx:main Sep 14, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AutoOpen closed Tags

2 participants