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

Refactor handleSaveEvent to use onWillSave async #1924

Merged
merged 3 commits into from
Nov 22, 2017
Merged

Refactor handleSaveEvent to use onWillSave async #1924

merged 3 commits into from
Nov 22, 2017

Conversation

stevenzeck
Copy link
Contributor

@stevenzeck stevenzeck commented Nov 1, 2017

What does this implement/fix? Explain your changes.

Refactors the handleSaveEvent function in beautify.coffee to make use of onWillSave now allowing async operations. It no longer waits for a save to complete before beautifying and then saving again, instead beautifies when the user invokes a save and afterwards the buffer saves.
...

Does this close any currently open issues?

#1895
...

Any other comments?

Would like some help testing this before it's considered for merging.
...

Checklist

Check all those that are applicable and complete.

  • Merged with latest master branch
  • Regenerate documentation with npm run docs
  • Add change details to CHANGELOG.md under "Next" section
  • Added examples for testing to examples/ directory
  • Travis CI passes (Mac support)
  • AppVeyor passes (Windows support)

@Glavin001 Glavin001 self-requested a review November 3, 2017 04:48
@Glavin001 Glavin001 self-assigned this Nov 3, 2017
Copy link
Owner

@Glavin001 Glavin001 left a comment

Choose a reason for hiding this comment

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

Missing change to engine in package.json

@stevenzeck
Copy link
Contributor Author

Pushed update to 1.21.0 in package.json

@Glavin001 Glavin001 merged commit a5c5d33 into Glavin001:master Nov 22, 2017
@Glavin001
Copy link
Owner

Awesome work! Beautify on save works great now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants