-
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
Fix ability to disable "no grammar" message #1024
Fix ability to disable "no grammar" message #1024
Conversation
565d40e
to
c40f87f
Compare
Can we have unit tests that check there won't be another regression in the future pretty please? |
c40f87f
to
e36dbe5
Compare
I don't know how to effectively unit test this scenario, but I attached an attempt |
c01164b
to
a653c63
Compare
...rc/main/java/org/eclipse/lemminx/extensions/contentmodel/settings/XMLValidationSettings.java
Outdated
Show resolved
Hide resolved
org.eclipse.lemminx/src/test/java/org/eclipse/lemminx/settings/SettingsMergeTest.java
Outdated
Show resolved
Hide resolved
org.eclipse.lemminx/src/test/java/org/eclipse/lemminx/settings/SettingsMergeTest.java
Outdated
Show resolved
Hide resolved
ee9c570
to
1a8c030
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.
The change definitely fixes things, but just a question of fixing the testcase.
org.eclipse.lemminx/src/test/java/org/eclipse/lemminx/settings/SettingsMergeTest.java
Outdated
Show resolved
Hide resolved
org.eclipse.lemminx/src/test/java/org/eclipse/lemminx/settings/SettingsMergeTest.java
Outdated
Show resolved
Hide resolved
ba8ea79
to
00ee4bc
Compare
Fixes redhat-developer/vscode-xml#467 Signed-off-by: David Thompson <[email protected]>
00ee4bc
to
506c401
Compare
I would just restore it to how it was before with the manual setting of methods and calling merge. No need for setAccessible(..). IMO, I think it's fine to merge. Anyone adding to validation settings should add to that testcase and they would catch any issues with merge. |
Fixes redhat-developer/vscode-xml#467
Signed-off-by: David Thompson [email protected]