@@ -169,8 +169,9 @@ instance Show (IdeCommand st) where show _ = "<ide command>"
169
169
170
170
data PluginDescriptor (ideState :: * ) =
171
171
PluginDescriptor { pluginId :: ! PluginId
172
- , pluginEnabledByDefault :: ! Bool
173
172
-- ^ Unique identifier of the plugin.
173
+ , pluginConfig :: ! PluginConfig
174
+ -- ^ Initial config values
174
175
, pluginPriority :: Natural
175
176
-- ^ Plugin handlers are called in priority order, higher priority first
176
177
, pluginRules :: ! (Rules () )
@@ -671,7 +672,7 @@ defaultPluginDescriptor :: PluginId -> PluginDescriptor ideState
671
672
defaultPluginDescriptor plId =
672
673
PluginDescriptor
673
674
plId
674
- True
675
+ Data.Default. def
675
676
defaultPluginPriority
676
677
mempty
677
678
mempty
@@ -692,7 +693,7 @@ defaultCabalPluginDescriptor :: PluginId -> PluginDescriptor ideState
692
693
defaultCabalPluginDescriptor plId =
693
694
PluginDescriptor
694
695
plId
695
- True
696
+ Data.Default. def
696
697
defaultPluginPriority
697
698
mempty
698
699
mempty
@@ -743,8 +744,8 @@ pluginEnabledConfig f pid config = plcGlobalOn pluginConfig && f pluginConfig
743
744
744
745
defConfigForPlugins :: IdePlugins ideState -> Config
745
746
defConfigForPlugins (IdePlugins pp) = defConfig $ HashMap. fromList
746
- [ (pId, Data.Default. def{plcGlobalOn = pluginEnabledByDefault} )
747
- | PluginDescriptor {pluginId = PluginId pId, pluginEnabledByDefault } <- pp
747
+ [ (pId, pluginConfig )
748
+ | PluginDescriptor {pluginId = PluginId pId, pluginConfig } <- pp
748
749
]
749
750
750
751
-- ---------------------------------------------------------------------
0 commit comments