hls-hlint-plugin 2.5.0.0 → 2.6.0.0
raw patch · 2 files changed
+7/−6 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-hlint-plugin.cabal +4/−4
- src/Ide/Plugin/Hlint.hs +3/−2
hls-hlint-plugin.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: hls-hlint-plugin-version: 2.5.0.0+version: 2.6.0.0 synopsis: Hlint integration plugin with Haskell Language Server description: Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>@@ -50,10 +50,10 @@ , extra , filepath , ghc-exactprint >=0.6.3.4- , ghcide == 2.5.0.0+ , ghcide == 2.6.0.0 , hashable , hlint >= 3.5 && < 3.7- , hls-plugin-api == 2.5.0.0+ , hls-plugin-api == 2.6.0.0 , lens , lsp , mtl@@ -98,7 +98,7 @@ , filepath , hls-hlint-plugin , hls-plugin-api- , hls-test-utils == 2.5.0.0+ , hls-test-utils == 2.6.0.0 , lens , lsp-types , row-types
src/Ide/Plugin/Hlint.hs view
@@ -195,7 +195,8 @@ descriptor recorder plId = let resolveRecorder = cmapWithPrio LogResolve recorder (pluginCommands, pluginHandlers) = mkCodeActionWithResolveAndCommand resolveRecorder plId codeActionProvider (resolveProvider recorder)- in (defaultPluginDescriptor plId)+ desc = "Provides HLint diagnostics and code actions. Built with hlint-" <> VERSION_hlint+ in (defaultPluginDescriptor plId desc) { pluginRules = rules recorder plId , pluginCommands = pluginCommands , pluginHandlers = pluginHandlers@@ -225,7 +226,7 @@ rules recorder plugin = do define (cmapWithPrio LogShake recorder) $ \GetHlintDiagnostics file -> do config <- getPluginConfigAction plugin- let hlintOn = pluginEnabledConfig plcDiagnosticsOn config+ let hlintOn = plcGlobalOn config && plcDiagnosticsOn config ideas <- if hlintOn then getIdeas recorder file else return (Right []) return (diagnostics file ideas, Just ())