Skip to content

Commit

Permalink
Merge pull request #170 from jackolantern/fix-restart-idris
Browse files Browse the repository at this point in the history
Idris now restarts if stopped and a command is run.
  • Loading branch information
melted authored Apr 19, 2017
2 parents cc110c0 + 2bebda8 commit 764345c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/idris-ide-mode.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class IdrisIdeMode extends EventEmitter
atom.notifications.addError short, detail: long

running: ->
!!@process
!!@process && !@process.killed

stdout: (data) =>
@buffer += data
Expand Down
2 changes: 1 addition & 1 deletion lib/idris-model.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class IdrisModel
oldCompilerOptions: { }

ideMode: (compilerOptions) ->
if @ideModeRef && !JS.objectEqual(@oldCompilerOptions, compilerOptions)
if @ideModeRef && (!JS.objectEqual(@oldCompilerOptions, compilerOptions) || not @ideModeRef.running())
@ideModeRef.process.removeAllListeners()
@ideModeRef.stop()
@ideModeRef = null
Expand Down

0 comments on commit 764345c

Please sign in to comment.