Fix #1948, #1949. Fix beautify on save when text has not changed

This commit is contained in:
Glavin Wiechert 2017-11-22 09:56:43 -04:00
parent 2690d2665b
commit 63c50ec7b3
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ beautify = ({ editor, onSave, language }) ->
else
error = new Error("Unsupported beautification result '#{text}'.")
showError(error)
return reject(error)
return setTimeout(-> resolve(text), 0)
# else
# console.log "Already Beautiful!"