Skip to content

Commit

Permalink
Fix for #1721
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Zeck authored and Steven Zeck committed Aug 11, 2017
1 parent 788d002 commit 7bd7348
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/beautify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7bd7348

Please sign in to comment.