From 105e192f216ebfc6587b81184bdd9eac589dc350 Mon Sep 17 00:00:00 2001 From: jneira Date: Mon, 17 Jan 2022 08:12:58 +0100 Subject: [PATCH 1/2] Enable rename plugin --- docs/features.md | 6 ++++++ haskell-language-server.cabal | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/features.md b/docs/features.md index 37c203360b..83e69dfa7e 100644 --- a/docs/features.md +++ b/docs/features.md @@ -18,6 +18,8 @@ You can watch demos for some of these features [below](#demos). - [Call hierarchy support](#call-hierarchy) - [Qualify names from an import declaration](#qualify-imported-names) in your code - [Suggest alternate numeric formats](#alternate-number-formatting) +- [Renaming](#renaming) definitions automatically across modules of *the same component* (library, executable, test suite, benchmark). + - Full renaming support for the entire project is being tracked in [this issue](https://github.com/haskell/haskell-language-server/issues/2193) ## Demos @@ -56,3 +58,7 @@ You can watch demos for some of these features [below](#demos). ### Alternate Number Formatting ![Alternate Number Format Demo](../plugins/hls-alternate-number-format-plugin/HLSAll.gif) + +### Renaming + +![Rename Demo](https://user-images.githubusercontent.com/30090176/133072143-d7d03ec7-3db1-474e-ad5e-6f40d75ff7ab.gif) \ No newline at end of file diff --git a/haskell-language-server.cabal b/haskell-language-server.cabal index 2e2203263a..0139112a6b 100644 --- a/haskell-language-server.cabal +++ b/haskell-language-server.cabal @@ -133,7 +133,7 @@ flag refineImports flag rename description: Enable rename plugin - default: False + default: True manual: True flag retrie From 894a669a77f29623b59954110a0ac8eed245dc4f Mon Sep 17 00:00:00 2001 From: jneira Date: Mon, 17 Jan 2022 08:15:59 +0100 Subject: [PATCH 2/2] Add rename plugin to hackage ci --- .github/workflows/hackage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hackage.yml b/.github/workflows/hackage.yml index 0d6957aa12..66d8e41544 100644 --- a/.github/workflows/hackage.yml +++ b/.github/workflows/hackage.yml @@ -32,7 +32,7 @@ jobs: "hls-refine-imports-plugin", "hls-retrie-plugin", "hls-splice-plugin", "hls-tactics-plugin", "hls-call-hierarchy-plugin", "hls-alternate-number-format-plugin", - "hls-qualify-imported-names-plugin", + "hls-qualify-imported-names-plugin", "hls-rename-plugin", "haskell-language-server"] ghc: [ "9.0.2" , "8.10.7"