-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
[wrap-guide] Make the automatic modification of editor.preferredLineLength
configurable
#754
[wrap-guide] Make the automatic modification of editor.preferredLineLength
configurable
#754
Conversation
Do you think you can add a test case for this change? |
Yeah lemme see what I can do here |
Alright, @mauricioszabo and done. We just gotta let tests run to ensure it's working as expected in CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I sort of recall what this was about.
Code looks reasonable with a quick skim, and test cases are added.
This is admittedly a somewhat cursory review, but seems legit! Approving...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do only have a negative test case "preference disables modifying the user's other preference if set".
Would be Excellent to have a positive test case "modifying other preferences is allowed and works, if the user specifies they want to allow that".
I dunno if it's a requirement to add such a test case, I leave that to the judgment of the PR author, but it seems like a good thing to me from my vantage and after my (admittedly brief) review.
@DeeDeeG Thanks a ton for review! So I think we are covered on that front. Otherwise since I know we are in a slight rush, I'll go ahead and merge this then take a double check after the fact. |
Oh damn I didn't realise this got merged, from the conversation it seemed like it was going to miss the 110 release. I didn't add it to the blurb, sorry about that. |
No worries at all. Last we left it, it wasn't going to get merged. Only once we realized that did we last minute get it included, so not at all something you missed, just last minute stuff sneaking by |
One thing though, it looks like this made it to the top of the changelog but not into the individual "PR" section of 110? |
Yeah looks like you are right about that. So that's a little messy, would we want to add it retroactively to the changelog? |
The main repo changelog is meant to be the source of truth so I think it is important to add it in there. I don't think it needs to be added into the current regular release changelog unless we do a 1.110.1 for a diffeerent issue. |
Yeah good call, I'll get that added |
In short, the
wrap-guide
package will automatically sync the setting ofeditor.preferredLineLength
whenever it's own settings are changed. Except it will only set theeditor.preferredLineLength
to that of the currently open syntax. Which can be confusing and downright unhelpful depending on your use case. Much more information is available on #697But this PR takes the simpler approach to this, in case anybody has come to rely on this behavior, where we make this behavior configurable within
wrap-guide
introducing a new settingwrap-guide.modifyPreferredLineLength
which by default istrue
(So that we don't change behavior on anyone) but does mean this function can be turned off to stop the unexpected behavior.Resolves #697
Resolves #696