Merge branch 'master' into fix-rubocop-issues-1773-793

This commit is contained in:
Brian Bugh 2017-09-13 11:01:54 -05:00
commit 529cec83b0
3 changed files with 11 additions and 7 deletions

View File

@ -1,7 +1,10 @@
# Next
- Fixes #1638. update type-formatter and Fixes indent size not supported
- Add support for rustfmt-nightly
- Fixes #1773 and #793. ruby-beautify with Rubocop now respects `Exclude` settings, and properly loads inherited config files (like `~/.rubocop.yml`)
- Fixes [#1773](https://github.com/Glavin001/atom-beautify/issues/1773) and [#793](https://github.com/Glavin001/atom-beautify/issues/793). ruby-beautify with Rubocop now respects `Exclude` settings, and properly loads inherited config files (like `~/.rubocop.yml`)
# v0.30.5 (2017-08-11)
- Fix for [#1721](https://github.com/Glavin001/atom-beautify/issues/1721). Changes required due to TextBuffer.save becoming async in Atom 1.19
- Fixes [#1638](https://github.com/Glavin001/atom-beautify/issues/1638). Update type-formatter and Fixes indent size not supported
- See [#358](https://github.com/Glavin001/atom-beautify/issues/358). Add support for rustfmt-nightly
# v0.30.4 (2017-07-14)
- Fixes #1732. Improve deprecation message for old options for new Executables

View File

@ -1,7 +1,7 @@
{
"name": "atom-beautify",
"main": "./src/beautify",
"version": "0.30.4",
"version": "0.30.5",
"private": true,
"description": "Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom",
"repository": {

View File

@ -542,9 +542,10 @@ handleSaveEvent = ->
# It will add a newline and keep the file from converging on a beautified form
# and saving without emitting onDidSave event, because there were no changes.
pendingPaths[filePath] = true
editor.save()
delete pendingPaths[filePath]
logger.verbose('Saved TextEditor.')
Promise.resolve(editor.save()).then(() ->
delete pendingPaths[filePath]
logger.verbose('Saved TextEditor.')
)
)
.catch((error) ->
return showError(error)