File tree 1 file changed +2
-1
lines changed
plugins/hls-hlint-plugin/src/Ide/Plugin
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import Control.Monad.IO.Class
24
24
import Control.Monad.Trans.Except
25
25
import Data.Aeson.Types (ToJSON (.. ), FromJSON (.. ), Value (.. ))
26
26
import Data.Binary
27
+ import Data.Default
27
28
import Data.Hashable
28
29
import qualified Data.HashMap.Strict as Map
29
30
import Data.Maybe
@@ -102,7 +103,7 @@ type instance RuleResult GetHlintDiagnostics = ()
102
103
rules :: PluginId -> Rules ()
103
104
rules plugin = do
104
105
define $ \ GetHlintDiagnostics file -> do
105
- config <- getClientConfigAction
106
+ config <- getClientConfigAction def
106
107
let pluginConfig = configForPlugin config plugin
107
108
let hlintOn' = hlintOn config && pluginEnabled pluginConfig plcDiagnosticsOn
108
109
ideas <- if hlintOn' then getIdeas file else return (Right [] )
You can’t perform that action at this time.
0 commit comments