Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Enable asyncrhonous save.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Aug 8, 2017
1 parent 0bf0b94 commit 1023a69
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/script-runner-process.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ class ScriptRunnerProcess
cwd = Path.dirname(editor.getPath())

# Save the file if it has been modified:
editor.save()

callback(editor.getPath(), cwd)
Promise.resolve(editor.save()).then =>
callback(editor.getPath(), cwd)

return true

Expand Down

0 comments on commit 1023a69

Please sign in to comment.