vscode-ghc-mod icon indicating copy to clipboard operation
vscode-ghc-mod copied to clipboard

Go to Definition does not reflect unsaved changes

Open danstiner opened this issue 7 years ago • 4 comments

Similar for other ghc-mod based commands I would assume.

I thought file contents were mapped in to the interactive ghc-mod process to account for unsaved changes?

Repro case:

Start with the file:

module M where

Save and then add the following lines without saving:

a = 'a'
b = a

Run Go to Definition on the usage of a.

Expected: jumps to definition line Actual: Says no definition found

danstiner avatar Mar 28 '17 23:03 danstiner

Related to #9

hoovercj avatar Mar 29 '17 06:03 hoovercj

Also, I believe the documentation for this extension recommends using autosave for exactly this reason

hoovercj avatar Mar 29 '17 06:03 hoovercj

Kind-of, it's implied to be relevant for the check command only.

danstiner avatar Mar 29 '17 06:03 danstiner

It's fine if it doesn't work, just opening and issue to track since I thought it was supposed to.

danstiner avatar Mar 29 '17 06:03 danstiner