Skip to content
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

schema: add support for "auto" split value #4249

Merged
merged 2 commits into from
Jan 15, 2020

Conversation

mkitzan
Copy link
Contributor

@mkitzan mkitzan commented Jan 15, 2020

Summary of the Pull Request

profiles.schema.json did not have auto as a valid value for the split attribute. This PR adds the support and makes a minor update to the details associated with the split attribute.

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

Potentially the default value for SplitPaneAction should be set to auto as well. Let me know your thoughts.

Validation Steps Performed

Changed the $schema attribute in my local profiles.json to the updated profiles.schema.json and ensured that auto did not have a squiggly line like in #4245.

Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be all for auto being the default value :)

@@ -215,7 +216,7 @@
"split": {
"$ref": "#/definitions/SplitState",
"default": "vertical",
"description": "The orientation to split the pane in, either vertical (think [|]) or horizontal (think [-])"
"description": "The orientation to split the pane in, either vertical (think [|]), horizontal (think [-]), or auto"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you describe auto in the description too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing

@carlos-zamora
Copy link
Member

Related to #4025

@mkitzan
Copy link
Contributor Author

mkitzan commented Jan 15, 2020

Added the requested changes

@zadjii-msft
Copy link
Member

Thanks for updating this! This is totally on me for not doing that in the first place 😝

@DHowett-MSFT DHowett-MSFT changed the title Add support for "auto" split value in profiles.schema schema: add support for "auto" split value Jan 15, 2020
@DHowett-MSFT DHowett-MSFT merged commit 23d1bcb into microsoft:master Jan 15, 2020
@mkitzan
Copy link
Contributor Author

mkitzan commented Jan 15, 2020

No problem! 💯

@mkitzan mkitzan deleted the splitpane-schema-update branch January 15, 2020 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"splitPane" key binding action schema is missing "auto" as a valid split type
4 participants