hls-code-range-plugin 1.1.0.0 → 2.0.0.0
raw patch · 7 files changed
+20/−20 lines, 7 filesdep ~ghcidedep ~hls-plugin-apidep ~hls-test-utilsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ghcide, hls-plugin-api, hls-test-utils
API changes (from Hackage documentation)
Files
- hls-code-range-plugin.cabal +6/−8
- test/testdata/folding-range/Empty.hs +1/−0
- test/testdata/folding-range/Function.hs +13/−0
- test/testdata/selection-range/Empty.golden.txt +0/−0
- test/testdata/selection-range/Function.golden.txt +0/−4
- test/testdata/selection-range/Import.golden.txt +0/−2
- test/testdata/selection-range/hie.yaml +0/−6
hls-code-range-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: hls-code-range-plugin-version: 1.1.0.0+version: 2.0.0.0 synopsis: HLS Plugin to support smart selection range and Folding range @@ -16,9 +16,7 @@ build-type: Simple extra-source-files: LICENSE- test/testdata/selection-range/*.hs- test/testdata/selection-range/*.yaml- test/testdata/selection-range/*.txt+ test/testdata/**/*.hs source-repository head type: git@@ -39,9 +37,9 @@ , containers , deepseq , extra- , ghcide ^>=1.9+ , ghcide == 2.0.0.0 , hashable- , hls-plugin-api ^>=1.6+ , hls-plugin-api == 2.0.0.0 , lens , lsp , mtl@@ -64,9 +62,9 @@ , bytestring , containers , filepath- , ghcide ^>=1.8 || ^>= 1.9+ , ghcide == 2.0.0.0 , hls-code-range-plugin- , hls-test-utils ^>=1.5+ , hls-test-utils == 2.0.0.0 , lens , lsp , lsp-test
+ test/testdata/folding-range/Empty.hs view
@@ -0,0 +1,1 @@+module Empty where
+ test/testdata/folding-range/Function.hs view
@@ -0,0 +1,13 @@+{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}+{-# HLINT ignore "Use module export list" #-}+module Function(isEven) where++isEven :: Integer -> Bool+isEven n = if n `mod` 2 == 0+ then True+ else False++isOdd :: Integer -> Bool+isOdd n = if n `mod` 2 == 0+ then False+ else True
− test/testdata/selection-range/Empty.golden.txt
− test/testdata/selection-range/Function.golden.txt
@@ -1,4 +0,0 @@-(5,16) (5,20) => (5,16) (5,40) => (5,14) (11,20) => (5,1) (11,20) => (4,1) (11,20) => (3,1) (11,20) => (3,1) (14,15)-(5,12) (5,13) => (5,1) (11,20) => (4,1) (11,20) => (3,1) (11,20) => (3,1) (14,15)-(4,1) (4,9) => (4,1) (4,29) => (4,1) (11,20) => (3,1) (11,20) => (3,1) (14,15)-(3,1) (3,9) => (3,1) (3,61) => (3,1) (11,20) => (3,1) (14,15)
− test/testdata/selection-range/Import.golden.txt
@@ -1,2 +0,0 @@-(4,33) (4,38) => (4,32) (4,47) => (4,1) (4,47) => (3,1) (4,47)-(1,8) (1,8)
− test/testdata/selection-range/hie.yaml
@@ -1,6 +0,0 @@-cradle:- direct:- arguments:- - "Import"- - "Function"- - "Empty"