packages feed

hls-change-type-signature-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-change-type-signature-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               hls-change-type-signature-plugin-version:            2.1.0.0+version:            2.2.0.0 synopsis:           Change a declarations type signature with a Code Action description:   Please see the README on GitHub at <https://github.com/haskell/plugins/hls-change-type-signature-plugin/README.md>@@ -28,8 +28,8 @@   hs-source-dirs:   src   build-depends:     , base             >=4.12 && < 5-    , ghcide           == 2.1.0.0-    , hls-plugin-api   == 2.1.0.0+    , ghcide           == 2.2.0.0+    , hls-plugin-api   == 2.2.0.0     , lsp-types     , regex-tdfa     , syb@@ -61,7 +61,7 @@     , base                 >=4.12 && < 5     , filepath     , hls-change-type-signature-plugin-    , hls-test-utils       == 2.1.0.0+    , hls-test-utils       == 2.2.0.0     , lsp     , QuickCheck     , regex-tdfa
test/Main.hs view
@@ -15,7 +15,7 @@                                                  Range (Range), Session,                                                  TestName, TestTree,                                                  TextDocumentIdentifier,-                                                 assertFailure,+                                                 assertFailure, def,                                                  defaultTestRunner,                                                  executeCodeAction,                                                  getCodeActions,@@ -91,7 +91,7 @@ testDataDir = "test" </> "testdata"  goldenChangeSignature :: FilePath -> (TextDocumentIdentifier -> Session ()) -> TestTree-goldenChangeSignature fp = goldenWithHaskellDoc changeTypeSignaturePlugin (fp <> " (golden)") testDataDir fp "expected" "hs"+goldenChangeSignature fp = goldenWithHaskellDoc def changeTypeSignaturePlugin (fp <> " (golden)") testDataDir fp "expected" "hs"  codeActionTest :: FilePath -> Int -> Int -> TestTree codeActionTest fp line col = goldenChangeSignature fp $ \doc -> do@@ -104,7 +104,7 @@  codeActionProperties :: TestName -> [(Int, Int)] -> ([CodeAction] -> Session ()) -> TestTree codeActionProperties fp locs assertions = testCase fp $ do-    runSessionWithServer changeTypeSignaturePlugin testDataDir $ do+    runSessionWithServer def changeTypeSignaturePlugin testDataDir $ do         openDoc (fp <.> ".hs") "haskell" >>= codeActionsFromLocs >>= findChangeTypeActions >>= assertions     where         codeActionsFromLocs doc = concat <$> mapM (getCodeActions doc . uncurry pointRange) locs