Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data WithDeletions
- getProcessID :: IO Int
- normalize :: Range -> Range
- makeDiffTextEdit :: Text -> Text -> List TextEdit
- makeDiffTextEditAdditive :: Text -> Text -> List TextEdit
- diffText :: ClientCapabilities -> (Uri, Text) -> Text -> WithDeletions -> WorkspaceEdit
- diffText' :: Bool -> (Uri, Text) -> Text -> WithDeletions -> WorkspaceEdit
- pluginDescToIdePlugins :: [PluginDescriptor ideState] -> IdePlugins ideState
- responseError :: Text -> ResponseError
- getClientConfig :: LspFuncs Config -> IO Config
- getPluginConfig :: LspFuncs Config -> PluginId -> IO PluginConfig
- configForPlugin :: Config -> PluginId -> PluginConfig
- pluginEnabled :: PluginConfig -> (PluginConfig -> Bool) -> Bool
- extractRange :: Range -> Text -> Text
- fullRange :: Text -> Range
- mkLspCommand :: PluginId -> CommandId -> Text -> Maybe [Value] -> IO Command
- mkLspCmdId :: Text -> PluginId -> CommandId -> Text
- allLspCmdIds :: Text -> [(PluginId, [PluginCommand ideState])] -> [Text]
- allLspCmdIds' :: Text -> IdePlugins ideState -> [Text]
- installSigUsr1Handler :: IO () -> IO ()
- subRange :: Range -> Range -> Bool
Documentation
data WithDeletions Source #
Instances
Eq WithDeletions Source # | |
Defined in Ide.PluginUtils (==) :: WithDeletions -> WithDeletions -> Bool # (/=) :: WithDeletions -> WithDeletions -> Bool # |
getProcessID :: IO Int Source #
normalize :: Range -> Range Source #
Extend to the line below and above to replace newline character.
diffText :: ClientCapabilities -> (Uri, Text) -> Text -> WithDeletions -> WorkspaceEdit Source #
Generate a WorkspaceEdit
value from a pair of source Text
diffText' :: Bool -> (Uri, Text) -> Text -> WithDeletions -> WorkspaceEdit Source #
A pure version of diffText
for testing
pluginDescToIdePlugins :: [PluginDescriptor ideState] -> IdePlugins ideState Source #
responseError :: Text -> ResponseError Source #
getClientConfig :: LspFuncs Config -> IO Config Source #
Returns the current client configuration. It is not wise to permanently cache the returned value of this function, as clients can at runitime change their configuration.
If no custom configuration has been set by the client, this function returns our own defaults.
getPluginConfig :: LspFuncs Config -> PluginId -> IO PluginConfig Source #
Returns the current plugin configuration. It is not wise to permanently cache the returned value of this function, as clients can change their configuration at runtime.
If no custom configuration has been set by the client, this function returns our own defaults.
configForPlugin :: Config -> PluginId -> PluginConfig Source #
pluginEnabled :: PluginConfig -> (PluginConfig -> Bool) -> Bool Source #
Checks that a given plugin is both enabled and the specific feature is enabled
allLspCmdIds :: Text -> [(PluginId, [PluginCommand ideState])] -> [Text] Source #
allLspCmdIds' :: Text -> IdePlugins ideState -> [Text] Source #
installSigUsr1Handler :: IO () -> IO () Source #