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. | InlayHint : Types.InlayHintParams.t -> Types.InlayHint.t list option t
  11. | TextDocumentCodeLensResolve : Types.CodeLens.t -> Types.CodeLens.t t
  12. | TextDocumentPrepareCallHierarchy : Types.CallHierarchyPrepareParams.t -> Types.CallHierarchyItem.t list option t
  13. | TextDocumentPrepareRename : Types.PrepareRenameParams.t -> Types.Range.t option t
  14. | TextDocumentRangeFormatting : Types.DocumentRangeFormattingParams.t -> Types.TextEdit.t list option t
  15. | TextDocumentRename : Types.RenameParams.t -> Types.WorkspaceEdit.t t
  16. | TextDocumentLinkResolve : Types.DocumentLink.t -> Types.DocumentLink.t t
  17. | TextDocumentMoniker : Types.MonikerParams.t -> Types.Moniker.t list option t
  18. | DocumentSymbol : Types.DocumentSymbolParams.t -> [ `DocumentSymbol of Types.DocumentSymbol.t list | `SymbolInformation of Types.SymbolInformation.t list ] option t
  19. | WorkspaceSymbol : Types.WorkspaceSymbolParams.t -> Types.SymbolInformation.t list option t
  20. | DebugEcho : Extension.DebugEcho.Params.t -> Extension.DebugEcho.Result.t t
  21. | DebugTextDocumentGet : Extension.DebugTextDocumentGet.Params.t -> Extension.DebugTextDocumentGet.Result.t t
  22. | TextDocumentReferences : Types.ReferenceParams.t -> Types.Location.t list option t
  23. | TextDocumentHighlight : Types.DocumentHighlightParams.t -> Types.DocumentHighlight.t list option t
  24. | TextDocumentFoldingRange : Types.FoldingRangeParams.t -> Types.FoldingRange.t list option t
  25. | SignatureHelp : Types.SignatureHelpParams.t -> Types.SignatureHelp.t t
  26. | CodeAction : Types.CodeActionParams.t -> Types.CodeActionResult.t t
  27. | CodeActionResolve : Types.CodeAction.t -> Types.CodeAction.t t
  28. | CompletionItemResolve : Types.CompletionItem.t -> Types.CompletionItem.t t
  29. | WillSaveWaitUntilTextDocument : Types.WillSaveTextDocumentParams.t -> Types.TextEdit.t list option t
  30. | TextDocumentFormatting : Types.DocumentFormattingParams.t -> Types.TextEdit.t list option t
  31. | TextDocumentOnTypeFormatting : Types.DocumentOnTypeFormattingParams.t -> Types.TextEdit.t list option t
  32. | TextDocumentColorPresentation : Types.ColorPresentationParams.t -> Types.ColorPresentation.t list t
  33. | TextDocumentColor : Types.DocumentColorParams.t -> Types.ColorInformation.t list t
  34. | SelectionRange : Types.SelectionRangeParams.t -> Types.SelectionRange.t list t
  35. | ExecuteCommand : Types.ExecuteCommandParams.t -> Import.Json.t t
  36. | SemanticTokensFull : Types.SemanticTokensParams.t -> Types.SemanticTokens.t option t
  37. | SemanticTokensDelta : Types.SemanticTokensDeltaParams.t -> [ `SemanticTokens of Types.SemanticTokens.t | `SemanticTokensDelta of Types.SemanticTokensDelta.t ] option t
  38. | SemanticTokensRange : Types.SemanticTokensRangeParams.t -> Types.SemanticTokens.t option t
  39. | LinkedEditingRange : Types.LinkedEditingRangeParams.t -> Types.LinkedEditingRanges.t option t
  40. | CallHierarchyIncomingCalls : Types.CallHierarchyIncomingCallsParams.t -> Types.CallHierarchyIncomingCall.t list option t
  41. | CallHierarchyOutgoingCalls : Types.CallHierarchyOutgoingCallsParams.t -> Types.CallHierarchyOutgoingCall.t list option t
  42. | WillCreateFiles : Types.CreateFilesParams.t -> Types.WorkspaceEdit.t option t
  43. | WillDeleteFiles : Types.DeleteFilesParams.t -> Types.WorkspaceEdit.t option t
  44. | WillRenameFiles : Types.RenameFilesParams.t -> Types.WorkspaceEdit.t option t
  45. | 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