Skip to content

Drop dedent-on-enter for "return" statements. - #6939

Merged
Eric Snow (ericsnowcurrently) merged 21 commits into
microsoft:masterfrom
ericsnowcurrently:drop-return-dedent
Aug 13, 2019
Merged

Eric Snow (ericsnowcurrently) merged 21 commits into
microsoft:masterfrom
ericsnowcurrently:drop-return-dedent

Conversation

@ericsnowcurrently

Copy link
Copy Markdown

(for #6813)

We'll work on adding support back in #6564.

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Has a news entry file (remember to thank yourself!)
  • Appropriate comments and documentation strings in the code
  • Has sufficient logging.
  • [ ] Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated
  • [ ] Test plan is updated as appropriate
  • [ ] package-lock.json has been regenerated by running npm install (if dependencies have changed)
  • [ ] The wiki is updated with any design decisions/details.

Comment thread src/client/language/languageConfiguration.ts

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good, only got a couple of questions about (╯°□°)╯︵ ┻━┻ sǝxǝƃǝɹ

Comment thread src/client/language/languageConfiguration.ts
Comment thread src/client/language/languageConfiguration.ts
Comment thread src/client/language/languageConfiguration.ts
Comment thread src/test/language/languageConfiguration.unit.test.ts Outdated
Comment thread src/client/common/utils/regexp.ts
Comment thread src/test/common/utils/regexp.unit.test.ts Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@ericsnowcurrently

Copy link
Copy Markdown
Author

Thanks for the review, Kim-Adeline Miguel (@kimadeline). I'd like to talk with you about this PR a bit more, especially since it refactors a bunch of the code that you original wrote. I'll ping you.

Also, note that to make this PR work I un-reverted #6497 and then removed the indentationRules part right after that. I'm pretty sure I have it right, especially since the same tests pass, but please pay extra attention to make sure I didn't miss something and accidentally re-introduce the bad behavior we reverted. Thanks!

@ericsnowcurrently
Eric Snow (ericsnowcurrently) dismissed Kim-Adeline Miguel (kimadeline)’s stale review August 13, 2019 17:11

need to merge this and Don already reviewed (will still check with Kim)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good, thank you 👍

@ericsnowcurrently
Eric Snow (ericsnowcurrently) merged commit 11dd074 into microsoft:master Aug 13, 2019
@ericsnowcurrently
Eric Snow (ericsnowcurrently) deleted the drop-return-dedent branch August 13, 2019 20:05
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 20, 2019
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.

3 participants