Skip to content

Commit

Permalink
Fix type inspection
Browse files Browse the repository at this point in the history
Because the editor was not saved before inspecting types, frequently Error(0) messages were shown, as the editor content and the idris representation would differ.
  • Loading branch information
Markus Klink committed Apr 3, 2017
1 parent 6233310 commit 31b6cdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/idris-controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ class IdrisController

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

Expand Down

0 comments on commit 31b6cdd

Please sign in to comment.