hls-plugin-api-2.4.0.0: Haskell Language Server API for plugin communication
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Methods

showsPrec :: Int -> Config -> ShowS #

show :: Config -> String #

showList :: [Config] -> ShowS #

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.

Constructors

PluginConfig 

Fields

Instances

Instances details
ToJSON PluginConfig # 
Instance details

Defined in Ide.Types

Show PluginConfig # 
Instance details

Defined in Ide.Types

Methods

showsPrec :: Int -> PluginConfig -> ShowS #

show :: PluginConfig -> String #

showList :: [PluginConfig] -> ShowS #

Default PluginConfig # 
Instance details

Defined in Ide.Types

Methods

def :: PluginConfig #

Eq PluginConfig # 
Instance details

Defined in Ide.Types

Methods

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

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

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 :: Type -> Type

Show CheckParents # 
Instance details

Defined in Ide.Types

Methods

showsPrec :: Int -> CheckParents -> ShowS #

show :: CheckParents -> String #

showList :: [CheckParents] -> ShowS #

Eq CheckParents # 
Instance details

Defined in Ide.Types

Methods

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

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

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.4.0.0-KJfNpTBJq8lII4el4H2UW6" '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)))