Commit Graph

453 Commits

Author SHA1 Message Date
Pepe Iborra
a25b1e3183 drop unused debug code and add TODO for import replacements 2020-08-01 16:32:50 +01:00
Pepe Iborra
7eb593fa58 Add ghc-api-version.h from ghcide 2020-08-01 16:28:27 +01:00
Pepe Iborra
b8627c2254 Add retrie to all? the stack.yaml descriptors 2020-08-01 16:28:27 +01:00
Pepe Iborra
6ff62c4a81 Compat with 8.10 2020-08-01 15:46:56 +01:00
Pepe Iborra
5e0e798c2d Fix comment out of place 2020-08-01 15:37:14 +01:00
Pepe Iborra
0722bfd90d Add README entry 2020-08-01 13:58:05 +01:00
Pepe Iborra
f8f58c9025 Initial Retrie plugin
Supports RULES, functions and type synonyms

Future work:

- Handling names properly (when retrie/#10 is fixed)
- Suggestions for pattern synonyms (when retrie/#15 is released)
- Refactorings: rename, extract, move, etc..
- Automatically add imports when unfolding
- Proper support for workspace folders
2020-08-01 13:50:25 +01:00
Pepe Iborra
e70d7e8255 add retrie to shell.nix 2020-08-01 13:35:10 +01:00
Pepe Iborra
047d83284e catch exceptions in plugin Commands 2020-08-01 13:35:10 +01:00
Luke Lau
a308151650 Fix compression extension on GitHub build artifacts 2020-07-31 23:29:45 +01:00
Luke Lau
75d4c62245
Merge pull request #262 from Ailrun/fix-ci
Remove a redundant caching step
2020-07-31 23:21:17 +01:00
Luke Lau
0adf4bd2e3
Merge pull request #260 from bubba/remove-hspec-expectations
Remove hspec-expectations
2020-07-31 23:20:56 +01:00
Junyoung Clare Jang
26f1e7feae
Remove a redundant caching step 2020-07-31 17:20:36 -04:00
Luke Lau
bd5e2565c6
Merge pull request #261 from haskell/fix-ci
Slow down Tasty by limiting it to -j1
2020-07-31 18:18:24 +01:00
Luke Lau
38672e030e Slow down Tasty by limiting it to -j1
Fixes flakey CI builds. Turns out it was trying to run every single test
in parallel at once, which is why when #247 added two extra tests it was
just enough to push it over the limit and cause things to fail
2020-07-31 15:34:54 +01:00
Luke Lau
3dbfa68bae
Merge pull request #259 from haskell/remove-redundant-circleci-steps
Remove redundant CircleCI steps
2020-07-31 14:52:28 +01:00
Luke Lau
6b51c7c54b Remove hspec-expectations
Use @? and @?= instead, since they give much easier to read error
messages. The `shouldX` functions all just end up dumping the Show
instance of a HSpecFailure or what have you which is really hard to
read. It also doesn't look like hspec-expectations is that actively
maintained anymore
2020-07-31 14:48:56 +01:00
Luke Lau
5163c41e71
Merge pull request #257 from sureyeaah/ormolu-fix
Ormolu fix
2020-07-31 14:28:59 +01:00
fendor
530ccb0fc9
Merge pull request #246 from pepeiborra/ormolu
Ormolu flags
2020-07-31 14:44:44 +02:00
Luke Lau
5dbf1531dd Remove redundant CircleCI steps
Hoogle nor happy nor cabal-helper shouldn't be needed anymore
2020-07-31 12:05:50 +01:00
shaurya gupta
7a8f51d7aa Remove *.ormolu.unchanged formatting tests 2020-07-30 20:25:25 +05:30
shaurya gupta
f51d4e8317 Ormolu RegionIndices should be 1-based 2020-07-30 19:36:15 +05:30
shaurya gupta
679e0ecc03 Don't normalize in ormolu 2020-07-30 19:36:15 +05:30
shaurya gupta
75f0d6bef2 Fix another bug in diffOperationToTextEdit
We were taking max of l and sl but the position of an insertion in
the newer document is irrelevant since the edits will be applied
from bottom to top.
2020-07-30 19:36:15 +05:30
shaurya gupta
d4371fd443 Fix bug in diffOperationToTextEdit
The original lineno extracted from the Addition DiffOperation needs
to be increased by 1.
2020-07-30 19:35:47 +05:30
shaurya gupta
96d42f3723 Add more tests for ormolu 2020-07-30 19:35:47 +05:30
shaurya gupta
3a6874d726 Add more tests for checking formatting 2020-07-30 17:09:07 +05:30
fendor
4fe0f7dfc1
Merge pull request #255 from georgefst/patch-1
Fix haddock parse error in install.hs
2020-07-29 15:25:43 +02:00
George Thomas
605d19a7b9
Fix haddock parse error in install.hs
Seeing as, since #209, the README suggests globally enabling `-haddock`, it's rather unfortunate for that not to work with HLS' own installation script...
2020-07-29 13:59:30 +01:00
Fendor
0439590a96 Fix type error in shell.nix 2020-07-29 12:57:27 +02:00
Luke Lau
e44f618c11 Update changelog for 0.2.2 2020-07-28 16:56:18 +01:00
Luke Lau
5407dfff2b Update URL to VS Code extension to point to Haskell publihsed one 2020-07-28 16:27:58 +01:00
Luke Lau
cd68c15813
Merge pull request #248 from bubba/binary-rename
Rename binaries before uploading
2020-07-28 16:26:02 +01:00
Luke Lau
0ac6c6df66 Disable Windows 8.8.4 build
It's encountered the segfault every single time now. Maybe another
release :(

Also remove the disable-documentation flag since the cabal.project file
has been updated
2020-07-28 15:26:05 +01:00
Luke Lau
5ac8653371 Rename binaries before uploading
Also use zip as compression method for Windows
Fixes #225
2020-07-28 11:34:27 +01:00
fendor
8d32b21da7
Merge pull request #244 from tittoassini/master
Fix for Eval plugin: Error from tests not reported
2020-07-28 09:57:41 +02:00
Luke Lau
0aae68bdff
Merge pull request #243 from bubba/accept-legacy-config-section-name
Accept the legacy "languageServerHaskell" config name
2020-07-27 23:50:27 +01:00
Luke Lau
95560b1daa Fix Brittany tests
Need to read in those test results as a file, since the CPP preprocessor
trips on those multiline strings
Also use @?= instead of `shouldBe`, since the exception thrown by it
gets caught by tasty and is pretty printed
2020-07-27 23:37:33 +01:00
Pepe Iborra
158a279cb8 Progress reporting
Because why not?
2020-07-27 20:57:34 +01:00
Pepe Iborra
1e743a0d91 Ormolu already handles file pragmas
ms_hspp_opts contains the LANGUAGE and OPTIONS pragmas

what we want here is the cabal/stack options instead
2020-07-27 20:57:34 +01:00
Pepe Iborra
6680505931 Fix rendering of extension flags for Ormolu 2020-07-27 20:57:32 +01:00
Pasqualino Titto Assini
04c2dfde52 Test for fix of "Error from tests not reported" 2020-07-27 18:48:45 +02:00
Pasqualino Titto Assini
157cd40764 Fix for Eval plugin: Error from tests not reported 2020-07-27 18:08:28 +02:00
Luke Lau
9d3d0e6f13 Accept the legacy "languageServerHaskell" config name
This also requires a bump to lsp-test to fix a test, and drops the
trick that the wrapper tests used to find the wrapper executable since
it was just confusing
2020-07-27 15:11:10 +01:00
Luke Lau
f2384e14ab
Merge pull request #241 from fendor/numeric-version
Add numeric-version option for wrapper and server
2020-07-26 20:52:53 +01:00
Fendor
5c10247df9 Add numeric-version option for wrapper and server
Also correctly shuts down the language server if `--version`
was given.

Minor rework of argument parser.
2020-07-26 20:05:32 +02:00
fendor
4e6082fb0f
Merge pull request #240 from pepeiborra/shell-nix
Shell nix further steps
2020-07-26 18:49:14 +02:00
Pepe Iborra
d286ae810d avoid hard-coding the default compiler 2020-07-26 15:36:34 +01:00
Pepe Iborra
2fe1447710 Simplify by optimizing for Nix cache reuse 2020-07-26 15:36:34 +01:00
Pepe Iborra
b7aa138f15 Fix compat. with ghc865, add more packages and rationale 2020-07-26 15:14:40 +01:00