dhall-haskell/dhall-lsp-server/src/Dhall/LSP
Frederik Ramcke 5f3b05a8f2 dhall-lsp-server: Implement completion support (#1190)
* Implement completion support

Completes the following:
- environment variables
- local imports
- identifiers in scope (as well as built-ins)
- record projections
- union constructors

* Add support for general dependent types

Removes the non-dependent let path. Needed since #1164 added support for
general dependent types.

* Remove unused import

* Use monad instance to cast between `Expr Src _`

As suggested by @Gabriel439: Use `typeOf (do _ <- expr; holeExpr)`
instead of `fmap undefined expr`. In the absence of `Embed` constructors
(in this case `Import`s) the two are equivalent.

* Simplify completeFromContext

Caught by @Gabriel439

* Remove debug code

* Add 1s timeout to listDirectory call

As pointed out by @Gabriel439, listDirectory can be a potentially
expensive operation. Adding a timeout should improve the user
experience.

* Fix unclean merge
2019-08-07 14:11:59 +00:00
..
Backend dhall-lsp-server: Implement completion support (#1190) 2019-08-07 14:11:59 +00:00
Handlers.hs dhall-lsp-server: Implement completion support (#1190) 2019-08-07 14:11:59 +00:00
Server.hs dhall-lsp-server: Implement completion support (#1190) 2019-08-07 14:11:59 +00:00
State.hs dhall-lsp-server: Implement caching (#1040) 2019-07-01 17:30:32 +00:00
Util.hs dhall-lsp-server: Implement caching (#1040) 2019-07-01 17:30:32 +00:00