hls-code-range-plugin 2.1.0.0 → 2.2.0.0
raw patch · 2 files changed
+7/−7 lines, 2 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 +5/−5
- test/Main.hs +2/−2
hls-code-range-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: hls-code-range-plugin-version: 2.1.0.0+version: 2.2.0.0 synopsis: HLS Plugin to support smart selection range and Folding range @@ -37,9 +37,9 @@ , containers , deepseq , extra- , ghcide == 2.1.0.0+ , ghcide == 2.2.0.0 , hashable- , hls-plugin-api == 2.1.0.0+ , hls-plugin-api == 2.2.0.0 , lens , lsp , mtl@@ -62,10 +62,10 @@ , bytestring , containers , filepath- , ghcide == 2.1.0.0+ , ghcide == 2.2.0.0 , hls-code-range-plugin , hls-plugin-api- , hls-test-utils == 2.1.0.0+ , hls-test-utils == 2.2.0.0 , lens , lsp , lsp-test
test/Main.hs view
@@ -41,7 +41,7 @@ selectionRangeGoldenTest :: TestName -> [(UInt, UInt)] -> TestTree selectionRangeGoldenTest testName positions = goldenGitDiff testName (testDataDir </> testName <.> "golden" <.> "txt") $ do- res <- runSessionWithServer plugin testDataDir $ do+ res <- runSessionWithServer def plugin testDataDir $ do doc <- openDoc (testName <.> "hs") "haskell" resp <- request SMethod_TextDocumentSelectionRange $ SelectionRangeParams Nothing Nothing doc $ fmap (uncurry Position . (\(x, y) -> (x-1, y-1))) positions@@ -71,7 +71,7 @@ foldingRangeGoldenTest :: TestName -> TestTree foldingRangeGoldenTest testName = goldenGitDiff testName (testDataDir </> testName <.> "golden" <.> "txt") $ do- res <- runSessionWithServer plugin testDataDir $ do+ res <- runSessionWithServer def plugin testDataDir $ do doc <- openDoc (testName <.> "hs") "haskell" resp <- request SMethod_TextDocumentFoldingRange $ FoldingRangeParams Nothing Nothing doc let res = resp ^. result