This commit is contained in:
Steven Zeck 2017-08-10 20:56:14 -05:00
parent 788d002402
commit 7bd7348323
1 changed files with 4 additions and 3 deletions

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)