Commit Graph

336 Commits

Author SHA1 Message Date
fendor
4d748f5d08 Drop CPP directives guarding GHC 8.2.2 statements 2019-10-31 10:52:11 +01:00
Alan Zimmerman
3a17fce382 Preparing 0.13 release 2019-10-22 21:56:16 +01:00
Alan Zimmerman
60c0df26d1 Update haskell-lsp to 0.17
Together with haskell-lsp-types and lsp-test

This now supports LSP spec 3.15
2019-10-20 21:53:27 +01:00
Alan Zimmerman
2060ffbe74 Use haskell-lsp(-types) 0.16 2019-10-03 23:33:52 +01:00
fendor
22a61da0c8
Add different Contexts for Module, import etc... (#1375)
* Add different Contexts for Module, import etc...

* Make sure Completions has identical behaviour

* Add more contexts

* Add more test cases for context queries

* Scrap contexts that may or may not be useful yet
2019-09-01 19:26:22 +02:00
fendor
ff9a5b2e85 Do not traverse into Generated bindings when creating TypeMap (#1372)
In a module with a lot of derived type classes, such as `Cabal.LicenseId` generating the hover map was taking upwards of 2gb of memory. 

In future, we might still want information about these derived bindings so instead we might choose not to traverse into `Type` nodes or work out why the traversal was actually taking so long.
2019-08-28 09:16:48 +01:00
Alan Zimmerman
14b6e09573 Preparing 0.12.0.0 July monthly release 2019-08-03 11:12:24 +02:00
Alan Zimmerman
e2c25cf5df Preparing for 0.11.0.0 release 2019-07-07 13:12:23 +02:00
Jose Lorenzo Rodriguez
0afad05302
Fixed mappend implementation for 8.2.2 2019-07-04 16:32:38 +02:00
Jose Lorenzo Rodriguez
f295623eb7
Importing semigourp to please 8.2.2 2019-07-04 15:43:25 +02:00
Jose Lorenzo Rodriguez
80ec66b0ef
Upgrade to haskell-lsp 0.15 2019-07-04 10:52:34 +02:00
Jose Lorenzo Rodriguez
b7fb445fa5
Making setCache strict in it's first argument instead 2019-06-21 09:50:55 +02:00
Jose Lorenzo Rodriguez
032d7d78ca
Fix a memory leak found by mpickering 2019-06-20 15:46:22 +02:00
Zubin Duggal
ddb5b906b7
Fix file mapping state when we have a parsed module but not a typechecked module 2019-06-17 00:35:24 +05:30
Luke Lau
4d179a9efc Fix UriCaches being leaked
This fixes UriCaches from being leaked via GhcModuleCaches.
This is the result of 72 hours at ZuriHac between 3 people and a lot of
time spent in gdb.

Blog post coming soon

Co-Authored-By: Matthew Pickering <matthewtpickering@gmail.com>
Co-Authored-By: Daniel Gröber <dxld@darkboxed.org>
2019-06-16 15:01:00 +02:00
Alan Zimmerman
d32113accf Trying out haskell-lsp 0.14
Tests failing, suspect a JSON encoding problem.

ping @cocreature, see the circle logs
2019-06-13 15:49:00 +02:00
Alan Zimmerman
e0c3518e01 Preparing for 0.10 May monthly release 2019-06-01 11:12:11 +02:00
Alan Zimmerman
8d2d3920e5 Bump haskell-lsp to 0.13.0.0
Which makes the liquidhaskell hover messages render better.
2019-05-18 13:56:14 +02:00
Alan Zimmerman
0b2cdf5043 More thinning of ghc-mod api 2019-05-09 22:22:03 +02:00
Alan Zimmerman
96d99e3713 WIP on thinning the ghc-mod API to just what HIE uses 2019-05-08 23:51:15 +02:00
Alan Zimmerman
d84a83eefe Merge branch 'master' into narrow-ghc-mod-core 2019-05-08 21:01:27 +02:00
Alan Zimmerman
4e76c92e73 Complete migration of some utilities to haskell-lsp
Currently using submodules pending accepting PRs on haskell-lsp and
lsp-test
2019-05-07 23:06:48 +02:00
Alan Zimmerman
3ee785a779 WIP on bringing in hie-bios VFS and haskell-lsp utils 2019-05-06 23:52:09 +02:00
Alan Zimmerman
ee99ab4d6a Explicitly list everything from ghc-mod-core that is actually used 2019-05-05 20:41:56 +02:00
Alan Zimmerman
84b0405fce Fix build for GHC 8.2 2019-05-04 20:15:07 +02:00
Alan Zimmerman
d50a1b04b2 Apply progress reporting to setTypecheckedModule in its new home
It moved from the ghc-mod plugin to hie-plugin-api
2019-05-04 18:51:23 +02:00
Alan Zimmerman
eb77dc1b88 Merge branch 'master' into hare-hie-plugin-api 2019-05-04 17:25:33 +02:00
Alan Zimmerman
db988e07e9 Merge remote-tracking branch 'haskell/master' into window-progress 2019-05-04 14:41:23 +02:00
Alan Zimmerman
f22b2ddc00
Merge pull request #1186 from fendor/typemap-reimplementation
Typemap reimplementation
2019-05-04 10:53:37 +02:00
Matthew Pickering
c121eb2215
Merge branch 'master' into window-progress 2019-05-04 09:41:06 +01:00
Alan Zimmerman
69878c9bc6
Merge pull request #1170 from fendor/hsimport-importlist
HsImport importlist
2019-05-04 10:22:21 +02:00
Alan Zimmerman
4f8873249b Prepare for 0.9.0.0 release 2019-05-01 12:59:22 +02:00
Luke Lau
1a3f467acb Use lifted-async 2019-04-29 19:29:31 +01:00
Luke Lau
a0db9b55ac Do up liquid haskell progress reporting 2019-04-29 00:12:37 +01:00
Luke Lau
0b09502219 Keep withProgress updater callback in IO 2019-04-28 22:22:55 +01:00
Luke Lau
8db04f978f Remove unused extensions 2019-04-28 20:50:19 +01:00
Matthew Pickering
7929ed998d Update withProgress to match new haskell-lsp
Co-authored-by: Matthew Pickering <matthewtpickering@gmail.com>
Co-authored-by: Luke Lau <luke_lau@icloud.com>
2019-04-28 20:42:15 +01:00
Alan Zimmerman
1d4a52c123 Use hie data type BiosOptions instead of ghc-mod Options 2019-04-28 14:45:01 +02:00
fendor
9507dc6f59 Add support for 8.2.1 - 8.4.4 for FunBind 2019-04-28 11:33:45 +02:00
Alan Zimmerman
fbd686086d Only ghc-mod Options and defaultOptions left to decouple 2019-04-28 00:11:19 +02:00
Alan Zimmerman
e1133226cb Start using ghc-project-types for the plugin API 2019-04-27 20:24:37 +02:00
fendor
91dd4c7bee Add type information for fun pat 2019-04-27 15:47:59 +02:00
Alan Zimmerman
416b2c84a0 Merge remote-tracking branch 'haskell/master' into hare-hie-plugin-api 2019-04-27 14:40:31 +02:00
fendor
8abb57c8c9 Actually pattern match on the results of tyOpt 2019-04-26 20:46:22 +02:00
fendor
6b655ee369 Update documentation of getType 2019-04-26 19:25:08 +02:00
fendor
823d35e88d Add support for GHC 8.4.4 and GHC 8.2.2 2019-04-26 16:27:37 +02:00
fendor
aaa6968ee6 Add Pattern Synonyms for GHC 8.6.4 2019-04-26 14:48:55 +02:00
fendor
1805ebb06d Remove unused function and add comment 2019-04-25 20:08:42 +02:00
fendor
11bbe7fb53 Add comment 2019-04-25 20:08:42 +02:00
fendor
ea5f819a78 Replace GHC.Name with GHC.Id in genTypeMap 2019-04-25 20:08:42 +02:00