Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Plugin c = Plugin {
- pluginRules :: Rules ()
- pluginHandler :: PartialHandlers c
- codeActionPlugin :: (LspFuncs c -> IdeState -> TextDocumentIdentifier -> Range -> CodeActionContext -> IO (Either ResponseError [CAResult])) -> Plugin c
- codeActionPluginWithRules :: Rules () -> (LspFuncs c -> IdeState -> TextDocumentIdentifier -> Range -> CodeActionContext -> IO (Either ResponseError [CAResult])) -> Plugin c
- makeLspCommandId :: Text -> IO Text
Documentation
Plugin | |
|
codeActionPlugin :: (LspFuncs c -> IdeState -> TextDocumentIdentifier -> Range -> CodeActionContext -> IO (Either ResponseError [CAResult])) -> Plugin c Source #
codeActionPluginWithRules :: Rules () -> (LspFuncs c -> IdeState -> TextDocumentIdentifier -> Range -> CodeActionContext -> IO (Either ResponseError [CAResult])) -> Plugin c Source #
makeLspCommandId :: Text -> IO Text Source #
Prefix to uniquely identify commands sent to the client. This has two parts
- A representation of the process id to make sure that a client has unique commands if it is running multiple servers, since some clients have a global command table and get confused otherwise.
- A string to identify ghcide, to ease integration into haskell-language-server, which routes commands to plugins based on that.