Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- asGhcIdePlugin :: IdePlugins -> Plugin Config
- pluginDescToIdePlugins :: [PluginDescriptor] -> IdePlugins
- mkLspCommand :: PluginId -> CommandId -> Text -> Maybe [Value] -> IO Command
- allLspCmdIds :: Text -> [(PluginId, [PluginCommand])] -> [Text]
- allLspCmdIds' :: Text -> IdePlugins -> [Text]
- getPid :: IO Text
- responseError :: Text -> ResponseError
Documentation
asGhcIdePlugin :: IdePlugins -> Plugin Config Source #
Map a set of plugins to the underlying ghcide engine. Main point is
IdePlugins are arranged by kind of operation, Plugin
is arranged by message
category (Notifaction
, Request
etc).
allLspCmdIds :: Text -> [(PluginId, [PluginCommand])] -> [Text] Source #
allLspCmdIds' :: Text -> IdePlugins -> [Text] Source #
Get the operating system process id for the running server instance. This should be the same for the lifetime of the instance, and different from that of any other currently running instance.
responseError :: Text -> ResponseError Source #