* Delete unused utilities for controlling logging.
Delete withFileLogging, logConfig, and noLogConfig.
Logging is turned on by hlsCommand. Should we ever want to disable it for a
certain test, we would create a new version of hlsCommand, say, hlsCommandNoLog.
* Delete unused import.
Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
Co-authored-by: Junyoung Clare Jang <jjc9310@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Fix#723
* Update boot test to have instance declarations
* Correct expected location of 'f' in boot-def-test
* Missed TemplateHaskell pragma from boot test
* Fix comment placement
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Implements splice location detection
* Corrects detection logic
* Changed to use (bogus) message for code action
* Splice location
* Extract `Ide.TreeTransform` as an independent package
* It once worked, but stops...
* Now it works for inplace expansion for expressions
* generalises tree transformation to general AST element
* Done for Types and Patterns!
* Disabled "commented" style of expansion
* kills redundant imports
* Updates cabal.project
* Nix fix
* Nix fix, fix
* Throws away loading hacks entirely
* Type adjusted for inverse dependency
* Resolves merge conflicts
* WIP: Support hover and goto definition for top-level splices
I can't work out how to properly integrate this information into the
.hie file machinery. Perhaps it would be better to upstream this.
* Modifies splice information to store both spliced expression and expanded ones as well
* Avoid name collision
* formatting erros
* Safer error handling
* Rewrote using updated ghcide `TypeCheck` results
* Use `liftRnf rwhnf` to force spine of lists
* Stop using `defaultRunMeta` directly to avoid override of preexisting hooks
* Error report
* Add splice information into HIE generation.
* Resolves interace conflict
* Add test
* Changes to use ParsedModule to detect Splice CodeLens
* formatted
* Implements golden test
* mzero for HsDecl
* Decl Splice
* Workaround for Decl expansion and support type-errored macro expansion.
* Only setting up dflags correcly would suffice
* Removes lines accidentally added
* Regression tests for Declaration splice and kind-error ones
* Workaround for GHC 8.8
* Revert "Workaround for GHC 8.8"
This reverts commit 056f76971f.
* Unsupport pattern splices GHC 8.8
* Corrects line position in GoToHover
* Increases wait time
* Includes only related changes only
* Optimises `something'`
* Adds hie.yaml
* circie ci: Modifies stack-8.10.3.yaml
* Forgot to update dflags in auto-expansion with default strategy
* Forgot to add golden file
* A dummy commit to run CI
* Workaround for GHC 8.8 pattern splices
Co-authored-by: Matthew Pickering <matthewtpickering@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Make it possible to choose the code action in extendImportTests
Let the order of the expected code actions dictate which one to execute, i.e.,
the first one. This means we no longer test the *order* of the suggested code
actions. Through this simple change, we can now test the execution of a code
action that doesn't come first in the list of suggested code actions.
* Suggest imports without the parent class
When suggesting to import a method `m` of class `C` from module `M`, in addition
to the suggestions `import M` and `import M (C(m))`, also suggest importing the
method without mentioning the enclosing class: `import M (m)`.
Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Delete test/testdata/wrapper/*.
This is all dead code. It was brought over from haskell ide engine, but we don't
use it.
Note:
We are deleting test/testdata/wrapper
We are NOT deleting test/wrapper/testdata
wrapper/testdata contains live testdata, which is being used to test that
haskell-language-server-wrapper can load the appropriate version of
haskell-language-server based on the environment that it is running in.
* Delete HaRe test files.
These are dead code, they are very simple so they aren't likely to be useful
when writing new tests, and they have "HaRe" in the name even though HaRe is
gone, which adds mental burden.
* Delete unused test datafiles.
These all came over from Haskell IDE Engine, and we aren't using them. So lets
clean up by deleting them.
Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
All ghcide issues have been transferred to HLS.
All PRs open at ghcide archive time were transferred, but closed and merged
ghcide PRs were left behind.
Before this commit we have:
1. Full links.
2. Numbers like "#xxx" or "-- xxx", referring to ghcide issues/PRs.
After this commit we have:
1. Full links.
2. Numbers like "#xxx" or "-- xxx", referring to HLS issues/PRs.
Note: "ghcide#xxx" and "hls#yyy" are unambiguous, github will never make an
issue and PR in the same repository with the same number.
Note: "#xxx" is definitely ambiguous, there can be a "ghcide#xxx" and an
"hls#xxx" which are totally unrelated. One could even be an issue while the
other is a pull request.
Relevant mappings:
ghcide#7 |-> hls#1129
ghcide#71 |-> hls#1102
ghcide#123 |-> hls#713
ghcide#137 |-> hls#1073
ghcide#246 |-> hls#1030
ghcide#247 |-> hls#1029
ghcide#248 |-> hls#1028
ghcide#249 |-> hls#717
ghcide#250 |-> hls#1027
ghcide#273 |-> hls#1017
ghcide#274 |-> hls#1016
ghcide#283 |-> hls#1012
ghcide#310 |-> hls#767
ghcide#315 |-> hls#1002
ghcide#614 |-> hls#891
ghcide#847 |-> hls#831
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Make rename tests compile.
(They can't pass since we don't have a renamer yet.)
* Enable some more tests.
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Perform memory measurement on SIGUSR1
* remove nub
* Update the open telemetry docs
* remove redundant bang
Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>