unison-cli-0.0.0
Safe HaskellNone
LanguageHaskell2010

Unison.LSP.GoToDefinition

Description

goToDeclaration, goToDefinition, and goToImplementation are equivalent except for the input/return wrappers

Synopsis
  • goToDefinitionHandler :: forall {f :: MessageDirection} (m :: Method f 'Request). TRequestMessage 'Method_TextDocumentDefinition -> (Either (TResponseError m) (MessageResult 'Method_TextDocumentDefinition) -> Lsp ()) -> Lsp ()
  • goToDeclarationHandler :: forall {f :: MessageDirection} (m :: Method f 'Request). TRequestMessage 'Method_TextDocumentDeclaration -> (Either (TResponseError m) (MessageResult 'Method_TextDocumentDeclaration) -> Lsp ()) -> Lsp ()
  • goToImplementationHandler :: forall {f :: MessageDirection} (m :: Method f 'Request). TRequestMessage 'Method_TextDocumentImplementation -> (Either (TResponseError m) (MessageResult 'Method_TextDocumentImplementation) -> Lsp ()) -> Lsp ()

Documentation

goToDefinitionHandler :: forall {f :: MessageDirection} (m :: Method f 'Request). TRequestMessage 'Method_TextDocumentDefinition -> (Either (TResponseError m) (MessageResult 'Method_TextDocumentDefinition) -> Lsp ()) -> Lsp () Source #

Go to Definition handler

goToDeclarationHandler :: forall {f :: MessageDirection} (m :: Method f 'Request). TRequestMessage 'Method_TextDocumentDeclaration -> (Either (TResponseError m) (MessageResult 'Method_TextDocumentDeclaration) -> Lsp ()) -> Lsp () Source #

Go to Declaration handler

goToImplementationHandler :: forall {f :: MessageDirection} (m :: Method f 'Request). TRequestMessage 'Method_TextDocumentImplementation -> (Either (TResponseError m) (MessageResult 'Method_TextDocumentImplementation) -> Lsp ()) -> Lsp () Source #