-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 matches of multiple schemas on "profiles" #4045
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.
Wow, that’s really subtle. Thanks!
I’ll sign off on this, but our two-reviewer policy might make it a little hard to get a change in over Christmas :)
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.
Jeez why didn't my json schema validator not catch that this schema was missing this :P?
@zadjii-msft just in case you are interested. Looks like VS Code relies on validation provided by vscode-json-languageservice package. |
Adds proper `type` for `SchemePair` definition to avoid warnings about matches of multiple schemas. Same fix as #4045 ## Validation Steps Performed - Pointed $schema to local file instead of https://aka.ms/terminal-profiles-schema - Confirmed warning goes away when using a string - Confirmed using the light/dark object format still passes validation - Confirmed values like `"colorScheme": 3` no longer incorrectly pass validation whereas they would before
Adds proper `type` for `SchemePair` definition to avoid warnings about matches of multiple schemas. Same fix as #4045 ## Validation Steps Performed - Pointed $schema to local file instead of https://aka.ms/terminal-profiles-schema - Confirmed warning goes away when using a string - Confirmed using the light/dark object format still passes validation - Confirmed values like `"colorScheme": 3` no longer incorrectly pass validation whereas they would before (cherry picked from commit 57b9549) Service-Card-Id: 90012052 Service-Version: 1.17
Adds proper `type` for `SchemePair` definition to avoid warnings about matches of multiple schemas. Same fix as #4045 ## Validation Steps Performed - Pointed $schema to local file instead of https://aka.ms/terminal-profiles-schema - Confirmed warning goes away when using a string - Confirmed using the light/dark object format still passes validation - Confirmed values like `"colorScheme": 3` no longer incorrectly pass validation whereas they would before (cherry picked from commit 57b9549) Service-Card-Id: 90012053 Service-Version: 1.18
Summary of the Pull Request
Adds proper
type
forProfilesObject
definition to avoid warnings about matches of multiple schemas.References
Original issue: #3909
Related PR: #3892
Relates VSCode issue: microsoft/vscode#86738
PR Checklist
Tests added/passedRequires documentation to be updatedDetailed Description of the Pull Request / Additional comments
Validation Steps Performed
doc/cascadia/profiles.schema.json
locallyprofiles.json
from WT in VSCode$schema
value with path to local copy (verified that all errors are still in place and validations works as before)type
onProfilesObject
Matches multiple schemas when only one must validate
warning is fixed