unison-cli-0.0.0
Safe HaskellNone
LanguageHaskell2010

Unison.LSP.EditDefinition

Synopsis
  • editDefinitionHandler :: forall {f1 :: MessageDirection} {f2 :: MessageDirection}. TRequestMessage ('Method_CustomMethod "unison/editDefinition" :: Method f1 'Request) -> (Either (TResponseError ('Method_CustomMethod "unison/editDefinition" :: Method f2 'Request)) Value -> Lsp ()) -> Lsp ()

Documentation

editDefinitionHandler :: forall {f1 :: MessageDirection} {f2 :: MessageDirection}. TRequestMessage ('Method_CustomMethod "unison/editDefinition" :: Method f1 'Request) -> (Either (TResponseError ('Method_CustomMethod "unison/editDefinition" :: Method f2 'Request)) Value -> Lsp ()) -> Lsp () Source #

Handler for the 'unison/editDefinition' custom LSP request. This resolves the symbol at the given position to its FQN and adds it to the current file.