-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved accuracy of attribute value quick fix suggestions #1136
Conversation
...ipse/lemminx/extensions/contentmodel/participants/codeactions/cvc_attribute_3CodeAction.java
Outdated
Show resolved
Hide resolved
b6240ae
to
45cfcf9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and works as expected. I don't see any similar tests for code actions, so I guess this should be fine.
@angelozerr , let me know if this can be merged.
...ipse/lemminx/extensions/contentmodel/participants/codeactions/cvc_attribute_3CodeAction.java
Outdated
Show resolved
Hide resolved
45cfcf9
to
695780f
Compare
It should be nice to write tests for this feature. We have already test for similar with local name at https://github.com/eclipse/lemminx/blob/e41b18cfc6541109907d6a035da2972b34b5ca6c/org.eclipse.lemminx/src/test/java/org/eclipse/lemminx/extensions/contentmodel/XMLSchemaDiagnosticsTest.java#L556 I suggest you write a test with similar for attribute (see tests which defines attribute enumeration by searching cvc_attribute_3 in https://github.com/eclipse/lemminx/blob/master/org.eclipse.lemminx/src/test/java/org/eclipse/lemminx/extensions/contentmodel/XMLSchemaDiagnosticsTest.java |
695780f
to
5e622f1
Compare
...minx/src/test/java/org/eclipse/lemminx/extensions/contentmodel/XMLSchemaDiagnosticsTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Alexander Chen <alchen@redhat.com>
5e622f1
to
3fe24bf
Compare
Thanks @AlexXuChen ! |
Improved accuracy of attribute value Quick Fix suggestions.
Fixes redhat-developer/vscode-xml/issues/618
Signed-off-by: Alexander Chen alchen@redhat.com