Ruslan Gadeev
5d56aa70a8
fix typos ( #3325 )
...
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-11-09 17:42:12 +00:00
Gabriella Gonzalez
7c0201b509
Add support for .env
shells to flake.nix
( #3322 )
...
The main motivation for this change is to enable development
of HLS plugins by generating a `.env` shell for every package in
this repository.
Example usage:
```ShellSession
$ nix develop .#haskell-language-server-dev-env.hls-fourmolu-plugin
```
This is a plain shell, though, without any tooling installed, identical
to the one that Nixpkgs provides by default.
2022-11-09 15:53:07 +00:00
Gabriella Gonzalez
5a8ccdbed0
Refactor overlay composition ( #3323 )
...
… so that it's easier to add and remove overlays by creating a list
of overlays to compose.
This should be a behavior-preserving change.
2022-11-08 09:47:33 +00:00
santiweight
9d70df07e6
support "add argument" action ( #3149 )
...
* support add-argument action
* respond to review comments
* review: add ability to report errors in CodeAction api
* review: use already-defined function
* attempts at cpp
* fix format error
* fix broken test
* doc: add self to codeowners; add doc to features.md
* formatting
* formatting
* fix an import
* review
* formatting
* add testcase with comments
* fix build error
Co-authored-by: Santiago Weight <santiago.weight@lmns.com>
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-11-06 14:08:28 -08:00
fendor
d17d9fd0cd
Remove stack from installation docs since it is not supported anymore ( #3314 )
...
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-11-05 22:14:52 +00:00
Elliot Marsden
4cb9ff1391
Make splice plugin compatible with GHC 9.2 ( #2816 )
...
* Compile and get all tests passing
* Add back-compat for GHC 9.0
* Update docs and build flags to enable for 9.2
2022-11-03 16:23:50 +00:00
Pepe Iborra
2b94f8581a
Record diagnostics source rule when testing ( #3301 )
...
* when testing: record the source rule in diagnostics
* Use _code field
* Moce to diagnostic related information
2022-11-01 09:27:18 +00:00
dependabot[bot]
caa5ce55c4
Bump cachix/cachix-action from 11 to 12 ( #3310 )
...
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action ) from 11 to 12.
- [Release notes](https://github.com/cachix/cachix-action/releases )
- [Commits](https://github.com/cachix/cachix-action/compare/v11...v12 )
---
updated-dependencies:
- dependency-name: cachix/cachix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 14:02:57 +00:00
Kobayashi
a913f47fc5
support haddock-library 1.11 ( #3303 )
...
* support haddock-library 1.11
* add test case
2022-10-24 16:34:04 +00:00
Zubin Duggal
94cd24d9e4
Fix testing hls-graph
2022-10-24 14:50:37 +05:30
Zubin Duggal
3b64a3b1c5
Introduce KeyMap and KeySet
2022-10-24 14:50:37 +05:30
Zubin Duggal
ada1b3dc13
hls-graph - avoid duplicating key texts
2022-10-24 14:50:37 +05:30
wz1000
eafda04529
Update hls-graph/src/Development/IDE/Graph/Internal/Types.hs
...
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-10-24 14:50:37 +05:30
Zubin Duggal
e99772d2d7
Implement sharing for hls-graph Keys
2022-10-24 14:50:37 +05:30
wz1000
43508cddbc
Improve hls-fixity-plugin ( #3205 )
2022-10-23 18:47:49 +02:00
Caique Figueiredo
d0e9055693
Change default cabal install target name ( #3298 )
2022-10-22 09:56:10 +01:00
Michael Peyton Jones
388fd40ade
Purge GHC 8.8 ( #3287 )
...
We're also dropping support for this.
2022-10-18 22:12:53 +01:00
dependabot[bot]
dc62321779
Bump cachix/cachix-action from 10 to 11 ( #3291 )
...
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action ) from 10 to 11.
- [Release notes](https://github.com/cachix/cachix-action/releases )
- [Commits](https://github.com/cachix/cachix-action/compare/v10...v11 )
---
updated-dependencies:
- dependency-name: cachix/cachix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 14:28:27 +01:00
dependabot[bot]
f586f4d412
Bump cachix/install-nix-action from 17 to 18 ( #3292 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 12:41:33 +01:00
Lei Zhu
8cef7a456a
Support ghc 9.4 for hls-class-plugin ( #3258 )
...
* Support ghc 9.4 for hls-class-plugin
* Update support table
* Update test description
* Update nix dependency
2022-10-16 11:56:43 -04:00
Andy
e36208bf72
Bump partial ghc support warning to 9.4 ( #3286 )
...
- 9.2 is now fully supported
- 9.4 is partially supported
2022-10-14 12:10:33 +00:00
Andy
5cdaa245dd
Improved message for missing command or plugin ( #3285 )
...
* No "PluginId" / "CommandId" prefix or quotes from show
* No line break, but comma separated
2022-10-12 16:12:47 +00:00
George Thomas
55456fb281
Register Fourmolu plugin properties ( #3284 )
...
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-10-12 12:15:05 +00:00
Andy
86e3fd6c65
Cleanup GHC macros (because min version is 8.8.4) ( #3281 )
...
* Drop min_version_ghc (8.8.4 is min supported)
* Drop conditional glasgow_haskell cpp
* Inline some imports (review feedback)
* Drop hie-compat 8.6 (review feedback)
* Dropping more ghc 8.6 related code and docs
* Eval: Include tests that were broken for 8.6
2022-10-11 22:35:18 +00:00
Pepe Iborra
9b491f7bbf
Drop compatibility with GHC 8.6.5 ( #3101 )
...
* Drop compatibility with GHC 8.6.5
* drop a few more bits
* fixup merge
Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
2022-10-11 12:18:49 +00:00
Chrizzl
07f14e33b3
Remove unlawful Ord instance and replace it by a compare function ( #3271 ) ( #3279 )
2022-10-11 09:54:10 +01:00
Chrizzl
e176eca897
Use an importance score to order the suggested import code action ( #3234 ) ( #3271 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-10-10 13:29:28 +00:00
Andy
21c8e9b83e
Hlint: A handful of fixes to hints ( #3259 )
...
* CI: rwe/actions-hlint-run v2
* fmt script: Fix missing directories
Otherwise will fail
* Hlint: Automatically fix warnings via apply-refact
* Hlint: Do not suggest fromMaybe
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-10-10 11:47:42 +00:00
Chrizzl
050497a19f
Exclude the implicit prelude import ( #2798 ) ( #3277 )
2022-10-09 17:32:17 +00:00
Zdeno Osina
0eb79a4695
Fix action removes ticks from TemplateHaskellQuotes ( #628 ) ( #3260 )
2022-10-09 13:38:27 +00:00
Akshay Mankar
4898f5b568
configuration-ghc-94.nix: Fix references to lsp and lsp-types source ( #3265 )
...
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-10-09 10:14:50 +01:00
Zdeno Osina
6d49b343ca
Fix typos in documentation ( #3274 )
2022-10-09 09:59:48 +01:00
Paweł Dybiec
595c527e43
Update plugin tutorial ( #3266 )
2022-10-08 12:45:45 +00:00
Kobayashi
d8e1e75241
Move new imports down the code action list ( #3235 )
...
* move new imports to the tail
* remove LANGUAGE CPP
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
2022-10-08 06:10:57 +00:00
Akshay Mankar
73b02ef3f7
Fix nix developement shell ( #3257 )
...
Upgrade a few packages which needed upgrade and avoid building hiedb in
nix as it has a dependency on a package in this repository (hie-compat).
2022-10-07 13:19:53 +00:00
Vilem
8fd2b89a01
Fix dead link to supported GHC versions ( #3244 )
...
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-10-06 09:36:25 +00:00
Michael Peyton Jones
b7e59d02e0
GCH -> GHC ( #3252 )
2022-10-06 08:45:37 +00:00
Andy
5bf8fe228b
Docs: Plugin Support hls-explicit-fixity-plugin ( #3251 )
2022-10-06 09:29:45 +01:00
citrusmunch
2e7d684983
update link to supported versions ( #3242 )
2022-10-05 16:07:18 +01:00
Michael Peyton Jones
f143cf1520
Add policy on plugin support tiers ( #3189 )
...
Following discussion in
https://github.com/haskell/haskell-language-server/discussions/3123 .
This aims to make it more obvious what it means when we say we support a
version of GHC.
2022-10-03 10:00:06 +00:00
dependabot[bot]
b4abea79a0
Bump fkirc/skip-duplicate-actions from 5.1.0 to 5.2.0 ( #3239 )
...
Bumps [fkirc/skip-duplicate-actions](https://github.com/fkirc/skip-duplicate-actions ) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/fkirc/skip-duplicate-actions/releases )
- [Commits](https://github.com/fkirc/skip-duplicate-actions/compare/v5.1.0...v5.2.0 )
---
updated-dependencies:
- dependency-name: fkirc/skip-duplicate-actions
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-03 09:07:41 +01:00
Javier Neira
c1d8f78160
Remove myself from codeowners ( #3230 )
...
Cause i am getting lot of notifications i dont have time to attend
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-09-29 15:59:20 +00:00
Kobayashi
011d110b4c
Fix error in code range ( #3229 )
...
* add test case
* handle error more properly
* add an error type
* fix tests
* log the bad dependency case
2022-09-29 04:54:06 +00:00
maralorn
f6dc2064d1
wrapper.in: Require runtime ghc-pkgs to be an abi compatible superset of bootpkgs ( #3214 )
...
This still makes sure that ghc has been compiled with the same core
libraries as hls while it allows runtime environments where other
packages have been added to the ghc-pkg database.
This commit also adds that file to the sdist, so that distro
packagers can use it.
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-09-28 13:22:21 +00:00
Berk Özkütük
468db6f2aa
Use nixpkgs variants of Sphinx packages ( #3227 )
...
This commit replaces manually specified `myst-parser` and `sphinx_rtd_theme`
packages with their counterparts already packaged on nixpkgs. With this
change, `poetry2nix` is no more used, therefore that is removed as well.
2022-09-27 10:16:14 +01:00
Colten Webb
cdbef3e5cb
Feat: basic record dot completions ( #3080 )
...
* baseline for record completions
* address feedback
* gate ghc version
* add test
* refactor
* fix rope import
* fix plugins from rebase
* gate test by ghc version
* comments, fixes
* fix ghc90 test
2022-09-26 16:30:29 +01:00
hololeap
e09c00588b
hls-hlint-plugin: Update README.md ( #3216 )
...
Remove warning about hlint restrictions, as #1340 has been merged.
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-09-26 13:37:47 +01:00
dependabot[bot]
30b2a4716e
Bump fkirc/skip-duplicate-actions from 4.0.0 to 5.1.0 ( #3226 )
...
Bumps [fkirc/skip-duplicate-actions](https://github.com/fkirc/skip-duplicate-actions ) from 4.0.0 to 5.1.0.
- [Release notes](https://github.com/fkirc/skip-duplicate-actions/releases )
- [Commits](https://github.com/fkirc/skip-duplicate-actions/compare/v4.0.0...v5.1.0 )
---
updated-dependencies:
- dependency-name: fkirc/skip-duplicate-actions
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 09:13:27 +01:00
Kobayashi
217573f4a1
Improve haddock comments ( #3207 )
...
* remove 'buildable: False' in cabal
* remove constraint on ghc-exactprint
* wip
* revert HaddockComments.hs
* generate haddock comments for constructors
* fix tests
* restore constraints
* make it compatible with ghc 9.0
* add more tests
* add comments & fix dp calculation for inline case
* add kokobd to codeowners of haddock-comments plugin
* fix a comment
* rephrase some comments to make them clearer
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-09-26 00:05:19 +00:00
fendor
6f9b435331
Sort vscode extension schema json by keys ( #3203 )
...
Makes it easier to copy and paste configurations into VSCode and
reviewing what options have been added and removed.
Remove code-duplication, namely ghcide exe loses some capabilities, as
it is destined to be removed sooner or later.
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Michael Peyton Jones <me@michaelpj.com>
2022-09-25 15:34:55 +00:00