Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

TargetNamespace.1/2 error range #61

Merged
merged 1 commit into from
Jun 10, 2020
Merged

Conversation

enxio
Copy link
Owner

@enxio enxio commented Jun 10, 2020

If the declared namespace of the root element is not the same as
the namespace declared in the schema, the xmlns attribute of the root
element is highlighted.

If there is no namespace declared in the root element, but one is
declared in the schema, the root element is highlighted.

Added a CodeAction attached to TargetNamespace.1 that replaces
the namespace declared in the instance with the namespace declared in
the schema.

Added a CodeAction attached to TargetNamespace.2 that adds the
xmlns attribute to the root element and fills it with the namespace
used in the schema.

Fixes eclipse-lemminx#704, Fixes eclipse-lemminx#703

Signed-off-by: David Thompson davthomp@redhat.com

If the declared namespace of the root element is not the same as
the namespace declared in the schema, the `xmlns` attribute of the root
element is highlighted.

If there is no namespace declared in the root element, but one is
declared in the schema, the root element is highlighted.

Added a CodeAction attached to `TargetNamespace.1` that replaces
the namespace declared in the instance with the namespace declared in
the schema.

Added a CodeAction attached to `TargetNamespace.2` that adds the
`xmlns` attribute to the root element and fills it with the namespace
used in the schema.

Fixes #704, Fixes #703

Signed-off-by: David Thompson <davthomp@redhat.com>
@enxio enxio merged commit f356a3d into enxio:master Jun 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix error range TargetNamespace.1 Fix error range TargetNamespace.2
2 participants