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. | TextDocumentImplementation : Types.ImplementationParams.t -> Types.Locations.t option t
  8. | TextDocumentCompletion : Types.CompletionParams.t -> [ `CompletionList of Types.CompletionList.t | `List of Types.CompletionItem.t list ] option t
  9. | TextDocumentCodeLens : Types.CodeLensParams.t -> Types.CodeLens.t list t
  10. | TextDocumentCodeLensResolve : Types.CodeLens.t -> Types.CodeLens.t t
  11. | TextDocumentPrepareCallHierarchy : Types.CallHierarchyPrepareParams.t -> Types.CallHierarchyItem.t list option t
  12. | TextDocumentPrepareRename : Types.PrepareRenameParams.t -> Types.Range.t option t
  13. | TextDocumentRangeFormatting : Types.DocumentRangeFormattingParams.t -> Types.TextEdit.t list option t
  14. | TextDocumentRename : Types.RenameParams.t -> Types.WorkspaceEdit.t t
  15. | TextDocumentLinkResolve : Types.DocumentLink.t -> Types.DocumentLink.t t
  16. | TextDocumentMoniker : Types.MonikerParams.t -> Types.Moniker.t list option t
  17. | DocumentSymbol : Types.DocumentSymbolParams.t -> [ `DocumentSymbol of Types.DocumentSymbol.t list | `SymbolInformation of Types.SymbolInformation.t list ] option t
  18. | WorkspaceSymbol : Types.WorkspaceSymbolParams.t -> Types.SymbolInformation.t list option t
  19. | DebugEcho : Extension.DebugEcho.Params.t -> Extension.DebugEcho.Result.t t
  20. | DebugTextDocumentGet : Extension.DebugTextDocumentGet.Params.t -> Extension.DebugTextDocumentGet.Result.t t
  21. | TextDocumentReferences : Types.ReferenceParams.t -> Types.Location.t list option t
  22. | TextDocumentHighlight : Types.DocumentHighlightParams.t -> Types.DocumentHighlight.t list option t
  23. | TextDocumentFoldingRange : Types.FoldingRangeParams.t -> Types.FoldingRange.t list option t
  24. | SignatureHelp : Types.SignatureHelpParams.t -> Types.SignatureHelp.t t
  25. | CodeAction : Types.CodeActionParams.t -> Types.CodeActionResult.t t
  26. | CodeActionResolve : Types.CodeAction.t -> Types.CodeAction.t t
  27. | CompletionItemResolve : Types.CompletionItem.t -> Types.CompletionItem.t t
  28. | WillSaveWaitUntilTextDocument : Types.WillSaveTextDocumentParams.t -> Types.TextEdit.t list option t
  29. | TextDocumentFormatting : Types.DocumentFormattingParams.t -> Types.TextEdit.t list option t
  30. | TextDocumentOnTypeFormatting : Types.DocumentOnTypeFormattingParams.t -> Types.TextEdit.t list option t
  31. | TextDocumentColorPresentation : Types.ColorPresentationParams.t -> Types.ColorPresentation.t list t
  32. | TextDocumentColor : Types.DocumentColorParams.t -> Types.ColorInformation.t list t
  33. | SelectionRange : Types.SelectionRangeParams.t -> Types.SelectionRange.t list t
  34. | ExecuteCommand : Types.ExecuteCommandParams.t -> Import.Json.t t
  35. | SemanticTokensFull : Types.SemanticTokensParams.t -> Types.SemanticTokens.t option t
  36. | SemanticTokensDelta : Types.SemanticTokensDeltaParams.t -> [ `SemanticTokens of Types.SemanticTokens.t | `SemanticTokensDelta of Types.SemanticTokensDelta.t ] option t
  37. | SemanticTokensRange : Types.SemanticTokensRangeParams.t -> Types.SemanticTokens.t option t
  38. | LinkedEditingRange : Types.LinkedEditingRangeParams.t -> Types.LinkedEditingRanges.t option t
  39. | CallHierarchyIncomingCalls : Types.CallHierarchyIncomingCallsParams.t -> Types.CallHierarchyIncomingCall.t list option t
  40. | CallHierarchyOutgoingCalls : Types.CallHierarchyOutgoingCallsParams.t -> Types.CallHierarchyOutgoingCall.t list option t
  41. | WillCreateFiles : Types.CreateFilesParams.t -> Types.WorkspaceEdit.t option t
  42. | WillDeleteFiles : Types.DeleteFilesParams.t -> Types.WorkspaceEdit.t option t
  43. | WillRenameFiles : Types.RenameFilesParams.t -> Types.WorkspaceEdit.t option t
  44. | UnknownRequest : {
    1. meth : string;
    2. params : Jsonrpc.Structured.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.Request.t -> (packed, string) Import.Result.t
val to_jsonrpc_request : _ t -> id:Jsonrpc.Id.t -> Jsonrpc.Request.t
val response_of_json : 'a t -> Import.Json.t -> 'a
val text_document : _ t -> (meth:string -> params:Jsonrpc.Structured.t option -> Types.TextDocumentIdentifier.t option) -> Types.TextDocumentIdentifier.t option
OCaml

Innovation. Community. Security.