packages feed

hls-change-type-signature-plugin 2.5.0.0 → 2.6.0.0

raw patch · 2 files changed

+6/−5 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.5.0.0+version:            2.6.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>@@ -27,8 +27,8 @@   hs-source-dirs:   src   build-depends:     , base             >=4.12 && < 5-    , ghcide           == 2.5.0.0-    , hls-plugin-api   == 2.5.0.0+    , ghcide           == 2.6.0.0+    , hls-plugin-api   == 2.6.0.0     , lsp-types     , regex-tdfa     , syb@@ -59,7 +59,7 @@     , base                 >=4.12 && < 5     , filepath     , hls-change-type-signature-plugin-    , hls-test-utils       == 2.5.0.0+    , hls-test-utils       == 2.6.0.0     , lsp     , QuickCheck     , regex-tdfa
src/Ide/Plugin/ChangeTypeSignature.hs view
@@ -33,7 +33,8 @@ import           Text.Regex.TDFA                  ((=~))  descriptor :: PluginId -> PluginDescriptor IdeState-descriptor plId = (defaultPluginDescriptor plId) { pluginHandlers = mkPluginHandler SMethod_TextDocumentCodeAction (codeActionHandler plId) }+descriptor plId = (defaultPluginDescriptor plId "Provides a code action to change the type signature of a binding if it is wrong")+  { pluginHandlers = mkPluginHandler SMethod_TextDocumentCodeAction (codeActionHandler plId) }  codeActionHandler :: PluginId -> PluginMethodHandler IdeState 'Method_TextDocumentCodeAction codeActionHandler plId ideState _ CodeActionParams {_textDocument = TextDocumentIdentifier uri, _context = CodeActionContext diags _ _} = do