See haskell/haskell-language-server#1286
Issue seems to be solved: haskell/haskell-language-server#1286 (comment)
- Open
test/Spec.hs - Jump to def with
testHelperworks - Jump to def with
libraryFunctiondoesn't work
See branch workaround.
package.yaml contains:
tests:
demo-hls-jump-to-definition-test:
source-dirs: test
dependencies: demo-hls-jump-to-definitionif src is additionally added as directory, it'll work.
Downside: Higher compile times, redundant
tests:
demo-hls-jump-to-definition-test:
source-dirs:
- test
- src
dependencies: demo-hls-jump-to-definitionhaskell-language-server version: 0.9.0.0 (GHC: 8.8.3) (GIT hash: 6b6c405d14a29ab3d2e7dbb4e2f79229758d26ba)
cabal: 3.2.0.0
stack: 2.5.1
ghc: 8.8.3