vscode-ghc-mod
vscode-ghc-mod copied to clipboard
Go to Definition does not reflect unsaved changes
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
Related to #9
Also, I believe the documentation for this extension recommends using autosave for exactly this reason
Kind-of, it's implied to be relevant for the check command only.
It's fine if it doesn't work, just opening and issue to track since I thought it was supposed to.