diff --git a/CHANGELOG.md b/CHANGELOG.md index fa7c34e..fae95a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 7fda53b..2cc1459 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/beautify.coffee b/src/beautify.coffee index 7cae9cc..55f568f 100644 --- a/src/beautify.coffee +++ b/src/beautify.coffee @@ -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)