Skip to content

Commit

Permalink
Merge pull request #162 from zjhmale/save-editor
Browse files Browse the repository at this point in the history
Save editor before executing commands
  • Loading branch information
melted authored Apr 8, 2017
2 parents 4dade4a + f041cde commit 6a8fff5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/idris-controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class IdrisController

getDocsForWord: ({ target }) =>
editor = @getEditor()
@saveFile editor
uri = editor.getURI()
word = Symbol.serializeWord @getWordUnderCursor(editor)

Expand Down Expand Up @@ -370,6 +371,7 @@ class IdrisController

printDefinition: ({ target }) =>
editor = @getEditor()
@saveFile editor
uri = editor.getURI()
word = Symbol.serializeWord @getWordUnderCursor(editor)

Expand Down

0 comments on commit 6a8fff5

Please sign in to comment.