Skip to content

Fixes #39750#39845

Merged
rebornix merged 1 commit intomicrosoft:masterfrom
AiryShift:39750
Dec 11, 2017
Merged

Fixes #39750#39845
rebornix merged 1 commit intomicrosoft:masterfrom
AiryShift:39750

Conversation

@AiryShift
Copy link
Contributor

Doesn't edit the model unless an edit is required, which means the undo stack is updated properly. Behaviour should be similar to files.trimTrailingWhitespace. I'm not sure how to test the behaviour to prevent a future regression though, if someone could clarify?

Closed #39844 because the commit provided the wrong issue number.

Doesn't edit the model unless an edit is required, which means the undo
stack is updated properly. Behaviour should be similar to
trimTrailingWhitespace
@rebornix rebornix merged commit 9581499 into microsoft:master Dec 11, 2017
@rebornix
Copy link
Member

@AiryShift thanks for your continuous contribution on this! I've added a test case which

  • sets the content
  • push edits (and make sure it on undo stack)
  • undo
  • trim new line
  • redo

in 838189f . You can take a look and play with it. Without your change, the test would fail. Thanks again for your help.

@AiryShift AiryShift deleted the 39750 branch December 13, 2017 09:59
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
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.

2 participants