Generate linkables in the Eval plugin (#2295)
* [hls-graph] clean up databaseDirtySet When I ported https://github.com/ndmitchell/shake/pull/802/files to hls-graph, I changed the encoding of the dirty set. Instead, Dirty became a constructor in the Status union. But the databaseDirtySet stayed around accidentally, leading to some confusion. * extract GetEvalComments rule * override NeedsCompilation rule in eval plugin to generate linkables when Evaluating In addition, we tune the newness check of the redefined NeedsCompilation rule so that the generated linkables are not thrown away unnecessarily, as described in: https://github.com/ndmitchell/shake/issues/794 * getLastBuildKeys * Test that the linkables are being produced * honor LSP_TEST_LOG_STDERR * add comments and use custom newness check in ghcide too * fix build * fix 9.0 build
Showing
- ghcide/src/Development/IDE/Core/RuleTypes.hs 8 additions, 0 deletionsghcide/src/Development/IDE/Core/RuleTypes.hs
- ghcide/src/Development/IDE/Core/Rules.hs 25 additions, 12 deletionsghcide/src/Development/IDE/Core/Rules.hs
- ghcide/src/Development/IDE/Core/Shake.hs 17 additions, 7 deletionsghcide/src/Development/IDE/Core/Shake.hs
- ghcide/src/Development/IDE/Plugin/Test.hs 8 additions, 3 deletionsghcide/src/Development/IDE/Plugin/Test.hs
- ghcide/src/Development/IDE/Types/Diagnostics.hs 5 additions, 1 deletionghcide/src/Development/IDE/Types/Diagnostics.hs
- ghcide/test/exe/Main.hs 5 additions, 10 deletionsghcide/test/exe/Main.hs
- ghcide/test/src/Development/IDE/Test.hs 15 additions, 3 deletionsghcide/test/src/Development/IDE/Test.hs
- haskell-language-server.cabal 1 addition, 1 deletionhaskell-language-server.cabal
- hls-graph/src/Development/IDE/Graph/Database.hs 11 additions, 1 deletionhls-graph/src/Development/IDE/Graph/Database.hs
- hls-graph/src/Development/IDE/Graph/Internal/Database.hs 14 additions, 8 deletionshls-graph/src/Development/IDE/Graph/Internal/Database.hs
- hls-graph/src/Development/IDE/Graph/Internal/Profile.hs 29 additions, 25 deletionshls-graph/src/Development/IDE/Graph/Internal/Profile.hs
- hls-graph/src/Development/IDE/Graph/Internal/Types.hs 1 addition, 2 deletionshls-graph/src/Development/IDE/Graph/Internal/Types.hs
- hls-test-utils/src/Test/Hls.hs 22 additions, 6 deletionshls-test-utils/src/Test/Hls.hs
- plugins/hls-eval-plugin/hls-eval-plugin.cabal 5 additions, 3 deletionsplugins/hls-eval-plugin/hls-eval-plugin.cabal
- plugins/hls-eval-plugin/src/Ide/Plugin/Eval.hs 2 additions, 0 deletionsplugins/hls-eval-plugin/src/Ide/Plugin/Eval.hs
- plugins/hls-eval-plugin/src/Ide/Plugin/Eval/CodeLens.hs 96 additions, 135 deletionsplugins/hls-eval-plugin/src/Ide/Plugin/Eval/CodeLens.hs
- plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Rules.hs 117 additions, 0 deletionsplugins/hls-eval-plugin/src/Ide/Plugin/Eval/Rules.hs
- plugins/hls-eval-plugin/src/Ide/Plugin/Eval/Types.hs 28 additions, 11 deletionsplugins/hls-eval-plugin/src/Ide/Plugin/Eval/Types.hs
- plugins/hls-eval-plugin/test/Main.hs 19 additions, 2 deletionsplugins/hls-eval-plugin/test/Main.hs
Loading
Please register or sign in to comment