Skip to content

Comments throws off diagnostic (cvc-complex-type.2.3) mark onto the wrong location #1495

@kathrynkodama

Description

@kathrynkodama

Adding text to an XML element and the diagnostic "Element 'server' cannot contain text content.
The content type is defined as element-only." is expected on the text. In the below screenshot, inserting a comment in between the text and the element, and the diagnostic range switches to the comment even though it is still expected on the text.

image

See OpenLiberty/liberty-language-server#163 for more details. Observed on server.xml and pom.xml files.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions