dhall-haskell/dhall-lsp-server/tests
Frederik Ramcke 619788f795 dhall-lsp-server: Fix hovering in presence of nested lets (#1537)
* Fix hacked-together parsers

Back when we changed the linter to preserve let comments we made
whitespace parsing explicit (previously combinators swallowed any
trailing whitespace), but we forgot to update the hacked-together
parsers used by the LSP server. As a result, various convenience
features broke, but that's easy enough to fix.

* Fix 'annotate lets' and 'type on hover' features

Both features only work as intended if as much of the Dhall code as
possible is wrapped in Note annotations, since we use that to figure out
where the user was pointing. Since the removal of explicit multi-lets in
the syntax the parser no longer wraps immediately nested lets (i.e.
multilets) in Notes, which means we need to split them manually (like we
used to).

* Fix hovering test

Now the behaviour expected by the test matches what we would want in
reality.
2019-11-20 17:02:06 +00:00
..
fixtures Functional tests setup for the LSP server (#1396) 2019-10-10 02:27:15 +00:00
Main.hs dhall-lsp-server: Fix hovering in presence of nested lets (#1537) 2019-11-20 17:02:06 +00:00