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

Make splitting respect supportMultipleDocument #120263

Merged
merged 3 commits into from Apr 7, 2021
Merged

Conversation

lramos15
Copy link
Member

This PR fixes #119666

When a custom editor is split that doesn't support multiple document it is left behind and a new empty group is created in the direction of split. This behavior aligns with what happens if your supportSplitEditors flag is false.

@lramos15 lramos15 added this to the April 2021 milestone Mar 31, 2021
@lramos15 lramos15 requested a review from mjbvz March 31, 2021 18:30
@lramos15 lramos15 self-assigned this Mar 31, 2021
@lramos15
Copy link
Member Author

lramos15 commented Apr 1, 2021

I have updated the behavior to move the editor to the new group if it doesn't support splitting. As for the case of it being by itself in the group, I'm not sure what the best behavior to do there or if there is one.

@lramos15
Copy link
Member Author

lramos15 commented Apr 7, 2021

@mjbvz After discussion during the UX sync it seems like the consensus here is to create an empty group if splitting is not allowed. This PR has been updated to reflect that.

Copy link
Contributor

@mjbvz mjbvz left a comment

Choose a reason for hiding this comment

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

Custom editor parts of the change look good to me

@lramos15 lramos15 merged commit fe10639 into main Apr 7, 2021
@lramos15 lramos15 deleted the lramos15/customSplit branch April 7, 2021 19:57
digitarald pushed a commit that referenced this pull request Apr 8, 2021
* Make splitting respect supportMultipleDocument

* Make split move the unsupported editor in the direction of the split

* Make it always split an empty group if the editor doesn't support splitting
gjsjohnmurray pushed a commit to gjsjohnmurray/vscode that referenced this pull request Apr 8, 2021
* Make splitting respect supportMultipleDocument

* Make split move the unsupported editor in the direction of the split

* Make it always split an empty group if the editor doesn't support splitting
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split editor group does nothing when the active group has only custom editors
2 participants