package lsp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type _ t =
  1. | Shutdown : unit t
  2. | Initialize : Types.InitializeParams.t -> Types.InitializeResult.t t
  3. | TextDocumentHover : Types.HoverParams.t -> Types.Hover.t option t
  4. | TextDocumentDefinition : Types.DefinitionParams.t -> Types.Locations.t option t
  5. | TextDocumentDeclaration : Types.TextDocumentPositionParams.t -> Types.Locations.t option t
  6. | TextDocumentTypeDefinition : Types.TypeDefinitionParams.t -> Types.Locations.t option t
  7. | TextDocumentCompletion : Types.CompletionParams.t -> [ `CompletionList of Types.CompletionList.t | `List of Types.CompletionItem.t list ] option t
  8. | TextDocumentCodeLens : Types.CodeLensParams.t -> Types.CodeLens.t list t
  9. | TextDocumentCodeLensResolve : Types.CodeLens.t -> Types.CodeLens.t t
  10. | TextDocumentPrepareRename : Types.PrepareRenameParams.t -> Types.Range.t option t
  11. | TextDocumentRename : Types.RenameParams.t -> Types.WorkspaceEdit.t t
  12. | TextDocumentLinkResolve : Types.DocumentLink.t -> Types.DocumentLink.t t
  13. | DocumentSymbol : Types.DocumentSymbolParams.t -> [ `DocumentSymbol of Types.DocumentSymbol.t list | `SymbolInformation of Types.SymbolInformation.t list ] option t
  14. | WorkspaceSymbol : Types.WorkspaceSymbolParams.t -> Types.SymbolInformation.t list option t
  15. | DebugEcho : Extension.DebugEcho.Params.t -> Extension.DebugEcho.Result.t t
  16. | DebugTextDocumentGet : Extension.DebugTextDocumentGet.Params.t -> Extension.DebugTextDocumentGet.Result.t t
  17. | TextDocumentReferences : Types.ReferenceParams.t -> Types.Location.t list option t
  18. | TextDocumentHighlight : Types.DocumentHighlightParams.t -> Types.DocumentHighlight.t list option t
  19. | TextDocumentFoldingRange : Types.FoldingRangeParams.t -> Types.FoldingRange.t list option t
  20. | SignatureHelp : Types.SignatureHelpParams.t -> Types.SignatureHelp.t t
  21. | CodeAction : Types.CodeActionParams.t -> Types.CodeActionResult.t t
  22. | CompletionItemResolve : Types.CompletionItem.t -> Types.CompletionItem.t t
  23. | WillSaveWaitUntilTextDocument : Types.WillSaveTextDocumentParams.t -> Types.TextEdit.t list option t
  24. | TextDocumentFormatting : Types.DocumentFormattingParams.t -> Types.TextEdit.t list option t
  25. | TextDocumentOnTypeFormatting : Types.DocumentOnTypeFormattingParams.t -> Types.TextEdit.t list option t
  26. | TextDocumentColorPresentation : Types.ColorPresentationParams.t -> Types.ColorPresentation.t list t
  27. | TextDocumentColor : Types.DocumentColorParams.t -> Types.ColorInformation.t list t
  28. | SelectionRange : Types.SelectionRangeParams.t -> Types.SelectionRange.t list t
  29. | ExecuteCommand : Types.ExecuteCommandParams.t -> Import.Json.t t
  30. | UnknownRequest : {
    1. meth : string;
    2. params : Import.Json.t option;
    } -> Import.Json.t t
val yojson_of_result : 'a t -> 'a -> Import.Json.t
type packed =
  1. | E : 'r t -> packed
val of_jsonrpc : Jsonrpc.Message.request -> (packed, string) Import.Result.t
val to_jsonrpc_request : _ t -> id:Jsonrpc.Id.t -> Jsonrpc.Message.request
val response_of_json : 'a t -> Import.Json.t -> 'a
val text_document : _ t -> (meth:string -> params:Import.Json.t option -> Types.TextDocumentIdentifier.t option) -> Types.TextDocumentIdentifier.t option
OCaml

Innovation. Community. Security.