-
Notifications
You must be signed in to change notification settings - Fork 28.9k
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 for issue 1490 #7029
Fix for issue 1490 #7029
Conversation
Hi @hashhar, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
I need someone to go over these:
|
@alexandrudima Just pinging you to ask about how to handle the localization stuff since this is a config key and has associated text to be shown in the config file. |
@alexandrudima @joaomoreno Could you point me to some unit tests so that I can add some for my feature. And what about the call to |
Tests for the Also, I don't think this option will make configuring straight-forward. Today, solely IMHO, to support this feature it is clearly insufficient to have a single option controlling both types of behaviours, therefore I suggest to go in the following direction:
Would you think that makes sense? IMHO it will give end-users a more clear picture of what these settings do. |
Currently that's exactly how it works. Unless I'll move to adding tests and rename the setting to something more obvious. |
I couldn't come up with unit tests. Sorry. Now let me describe the feature: There can be 6 settings combinations:
So only the last configuration is a new behaviour. I hope this was clear. |
I fixed the viewport wrapping to on even if the user chose a wrapping column > 0. I then assign the wrappingColumn value based on the minimum of 80 or the current viewport width. Next Steps: Change the behaviour to respect the user settings. Add a new configuration option to configure the behaviour. Will need to dicuss this with the core devs.
I converted the setting I introduced into a separate config option so that users can configure it independently of other options. The setting works in a backwards compatible way so that keeping it off doesn't change the user experience than what the user is experienced to. Only when the setting is turned on will it have an effect on the experience.
Changes Unknown when pulling 7aa98e6 on hashhar:issue-1490 into * on Microsoft:master*. |
Thank you for your contribution! ❤️ |
@alexandrudima It seems some newer commits have rewritten the changes introduced by this PR. I have pushed after rebasing against the latest master right now. EDIT: My bad. It seems that the name of the setting was changed. |
Yeah, hope you don't mind I renamed it to |
@alexandrudima No. It makes more sense. And the description is more clear about what it will do. Thanks. Sorry for the disturbance. |
This is an enhancement as requested in #1490
The commit messages are pretty descriptive and explain why I did what I did.
Things left to do:
wrappingColumn
,viewportWrapping
,smartAutomaticLayout
)