Skip to content

Fix matches of multiple schemas on "colorScheme"#15748

Merged
carlos-zamora merged 2 commits intomicrosoft:mainfrom
brandondong:colorScheme_matches
Jul 27, 2023
Merged

Fix matches of multiple schemas on "colorScheme"#15748
carlos-zamora merged 2 commits intomicrosoft:mainfrom
brandondong:colorScheme_matches

Conversation

@brandondong
Copy link
Contributor

@brandondong brandondong commented Jul 23, 2023

Adds proper type for SchemePair definition to avoid warnings about matches of multiple schemas.

Same fix as #4045

Validation Steps Performed

@brandondong
Copy link
Contributor Author

@microsoft-github-policy-service agree

@carlos-zamora
Copy link
Member

Thanks for doing this!

@carlos-zamora
Copy link
Member

Image from original PR body

image

@carlos-zamora carlos-zamora merged commit 57b9549 into microsoft:main Jul 27, 2023
@DHowett
Copy link
Member

DHowett commented Jul 27, 2023

thanks so much! marked for servicing to 1.17 and 1.18

DHowett pushed a commit that referenced this pull request Jul 27, 2023
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
DHowett pushed a commit that referenced this pull request Jul 27, 2023
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
@brandondong brandondong deleted the colorScheme_matches branch July 28, 2023 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

4 participants