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

Use an Automatic split for splitPane by default #5194

Merged
3 commits merged into from
Apr 1, 2020

Conversation

zadjii-msft
Copy link
Member

Summary of the Pull Request

You no longer need to specify the split argument to splitPane, it will default to Automatic instead of None

PR Checklist

  • Closes a discussion we had in team sync
  • I work here
  • Tests updated
  • [n/a] Requires documentation to be updated

Detailed Description of the Pull Request / Additional comments

Also disables the tests that are broken in #5169 while I investigate

@carlos-zamora
Copy link
Member

Now that the "split" keybinding arg assumes the value of "auto", should we make it no longer required? If so, we should update SettingsSchema.md and profiles.schema.json

@carlos-zamora
Copy link
Member

Now that the "split" keybinding arg assumes the value of "auto", should we make it no longer required? If so, we should update SettingsSchema.md and profiles.schema.json

Actually, this is where the timeline can get a little messy too. It's small, but editing the schema before publishing these changes to the store means that they're out of sync. :/ so I'll just approve for now since I don't know what the correct course of action is. We should update them at some point though.

Tagging @cinnamon-msft to make sure these changes are reflected in the docs.

Log::Result(WEX::Logging::TestResults::Skipped);
return;

// // * Create a tab with a profile with GUID 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Broadly I’d prefer an #if 0 block because it doesn’t delta every single line, but.. idc enough to block for it

{
if (_splitHorizontal)
{
args->SplitStyle(SplitState::Horizontal);
}
else if (_splitVertical)
{
args->SplitStyle(SplitState::Horizontal);
args->SplitStyle(SplitState::Vertical);
Copy link
Contributor

Choose a reason for hiding this comment

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

wait did we ship with -V meaning Horizontal

@cinnamon-msft
Copy link
Contributor

cinnamon-msft commented Mar 31, 2020

Before this goes in, would you mind removing line 233 of the JSON schema? It states that "split" is required for "splitPane", which is now no longer the case. :) Additionally, if you could update settingsschema.md to make sure "split" isn't required that would be awesome.

@DHowett-MSFT
Copy link
Contributor

@cinnamon-msft I think that’s what Carlos was asking for your input on, because of the lag time between a feature landing here and it being part of the official schema for all users on all versions.

@DHowett-MSFT DHowett-MSFT added the AutoMerge Marked for automatic merge by the bot when requirements are met label Apr 1, 2020
@ghost
Copy link

ghost commented Apr 1, 2020

Hello @DHowett-MSFT!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@DHowett-MSFT
Copy link
Contributor

@msftbot merge this in 8 minutes

@ghost
Copy link

ghost commented Apr 1, 2020

Hello @DHowett-MSFT!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Wed, 01 Apr 2020 00:14:16 GMT, which is in 8 minutes

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@ghost ghost merged commit a621a6f into master Apr 1, 2020
@ghost ghost deleted the dev/migrie/b/auto-split-by-default branch April 1, 2020 00:59
@ghost
Copy link

ghost commented Apr 22, 2020

🎉Windows Terminal Preview v0.11.1121.0 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge Marked for automatic merge by the bot when requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants