hls-plugin-api-2.7.0.0: Haskell Language Server API for plugin communication
Safe HaskellNone
LanguageGHC2021

Ide.Plugin.Config

Synopsis

Documentation

getConfigFromNotification :: IdePlugins s -> Config -> Value -> Either Text Config #

Given a DidChangeConfigurationNotification message, this function returns the parsed Config object if possible.

data Config #

We (initially anyway) mirror the hie configuration, so that existing clients can simply switch executable and not have any nasty surprises. There will initially be surprises relating to config options being ignored though.

Instances

Instances details
ToJSON Config # 
Instance details

Defined in Ide.Types

Show Config # 
Instance details

Defined in Ide.Types

Default Config # 
Instance details

Defined in Ide.Types

Methods

def :: Config #

Eq Config # 
Instance details

Defined in Ide.Types

Methods

(==) :: Config -> Config -> Bool #

(/=) :: Config -> Config -> Bool #

data PluginConfig #

A PluginConfig is a generic configuration for a given HLS plugin. It provides a "big switch" to turn it on or off as a whole, as well as small switches per feature, and a slot for custom config. This provides a regular naming scheme for all plugin config.

Instances

Instances details
ToJSON PluginConfig # 
Instance details

Defined in Ide.Types

Show PluginConfig # 
Instance details

Defined in Ide.Types

Default PluginConfig # 
Instance details

Defined in Ide.Types

Methods

def :: PluginConfig #

Eq PluginConfig # 
Instance details

Defined in Ide.Types

data CheckParents #

Instances

Instances details
FromJSON CheckParents # 
Instance details

Defined in Ide.Types

ToJSON CheckParents # 
Instance details

Defined in Ide.Types

Generic CheckParents # 
Instance details

Defined in Ide.Types

Associated Types

type Rep CheckParents 
Instance details

Defined in Ide.Types

type Rep CheckParents = D1 ('MetaData "CheckParents" "Ide.Types" "hls-plugin-api-2.7.0.0-HcTkuXxSLIZG3q65FjVdQM" 'False) (C1 ('MetaCons "NeverCheck" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CheckOnSave" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlwaysCheck" 'PrefixI 'False) (U1 :: Type -> Type)))
Show CheckParents # 
Instance details

Defined in Ide.Types

Eq CheckParents # 
Instance details

Defined in Ide.Types

Ord CheckParents # 
Instance details

Defined in Ide.Types

type Rep CheckParents # 
Instance details

Defined in Ide.Types

type Rep CheckParents = D1 ('MetaData "CheckParents" "Ide.Types" "hls-plugin-api-2.7.0.0-HcTkuXxSLIZG3q65FjVdQM" 'False) (C1 ('MetaCons "NeverCheck" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CheckOnSave" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AlwaysCheck" 'PrefixI 'False) (U1 :: Type -> Type)))