-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Reduce Preference Validation Warnings & Improve Monaco Extractor #11025
Reduce Preference Validation Warnings & Improve Monaco Extractor #11025
Conversation
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.
After the changes I still get a single warning for the eslint preferences (?):
root WARN A contributed preference schema has validation issues : data.properties['eslint.workingDirectories'].items.anyOf[1].properties['default'] should be object,boolean, data.properties['eslint.workingDirectories'].items should be array, data.properties['eslint.workingDirectories'].items should match some schema in anyOf
Also, when changing a preference to an invalid value, such as "files.autoSave": true
, the UI seems to display a changed value:
It seems like this value isn't applied as expected, since auto save is still enabled, even though the UI displays off
.
@msujew thanks for taking a look. Both of those behaviors are expected. The validations warnings I want to limit are at preference read time and say something about substituting a valid value for an invalid value.
|
@colin-grant-work Alright, that's good to know, I was just following the
Right, I didn't explain myself well enough. I'm not complaining that the preference is marked as modified (it's modified, so it's the expected behavior), the issue is that |
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.
Changes are looking good to me!
- No unexpected preference validation warning errors on startup
- Invalid preference values are logged out as such
- The preference UI continues to show the preference values in effect
What it does
This PR reduces the number of warnings logged by the
PreferenceValidationService
(hopefully to 0, unless real problems are created by user entry) by improving preference extraction from Monaco and adjusting a few schemata to reflect additional values expected by Monaco but not explicitly specified in the schema.How to test
Review checklist
Reminder for reviewers