Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- getConfigFromNotification :: Config -> Value -> Either Text Config
- data Config = Config {
- checkParents :: CheckParents
- checkProject :: !Bool
- formattingProvider :: !Text
- maxCompletions :: !Int
- plugins :: !(Map Text PluginConfig)
- parseConfig :: Config -> Value -> Parser Config
- data PluginConfig = PluginConfig {
- plcGlobalOn :: !Bool
- plcCallHierarchyOn :: !Bool
- plcCodeActionsOn :: !Bool
- plcCodeLensOn :: !Bool
- plcDiagnosticsOn :: !Bool
- plcHoverOn :: !Bool
- plcSymbolsOn :: !Bool
- plcCompletionOn :: !Bool
- plcRenameOn :: !Bool
- plcSelectionRangeOn :: !Bool
- plcConfig :: !Object
- data CheckParents
Documentation
getConfigFromNotification :: Config -> Value -> Either Text Config Source #
Given a DidChangeConfigurationNotification message, this function returns the parsed Config object if possible.
We (initially anyway) mirror the hie configuration, so that existing clients can simply switch executable and not have any nasty surprises. There will be surprises relating to config options being ignored, initially though.
Config | |
|
data PluginConfig Source #
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.
PluginConfig | |
|
Instances
FromJSON PluginConfig Source # | |
Defined in Ide.Plugin.Config parseJSON :: Value -> Parser PluginConfig # parseJSONList :: Value -> Parser [PluginConfig] # | |
ToJSON PluginConfig Source # | |
Defined in Ide.Plugin.Config toJSON :: PluginConfig -> Value # toEncoding :: PluginConfig -> Encoding # toJSONList :: [PluginConfig] -> Value # toEncodingList :: [PluginConfig] -> Encoding # | |
Show PluginConfig Source # | |
Defined in Ide.Plugin.Config showsPrec :: Int -> PluginConfig -> ShowS # show :: PluginConfig -> String # showList :: [PluginConfig] -> ShowS # | |
Default PluginConfig Source # | |
Defined in Ide.Plugin.Config def :: PluginConfig # | |
Eq PluginConfig Source # | |
Defined in Ide.Plugin.Config (==) :: PluginConfig -> PluginConfig -> Bool # (/=) :: PluginConfig -> PluginConfig -> Bool # |
data CheckParents Source #