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. | TextDocumentMoniker : Types.MonikerParams.t -> Types.Moniker.t list option t
  14. | DocumentSymbol : Types.DocumentSymbolParams.t -> [ `DocumentSymbol of Types.DocumentSymbol.t list | `SymbolInformation of Types.SymbolInformation.t list ] option t
  15. | WorkspaceSymbol : Types.WorkspaceSymbolParams.t -> Types.SymbolInformation.t list option t
  16. | DebugEcho : Extension.DebugEcho.Params.t -> Extension.DebugEcho.Result.t t
  17. | DebugTextDocumentGet : Extension.DebugTextDocumentGet.Params.t -> Extension.DebugTextDocumentGet.Result.t t
  18. | TextDocumentReferences : Types.ReferenceParams.t -> Types.Location.t list option t
  19. | TextDocumentHighlight : Types.DocumentHighlightParams.t -> Types.DocumentHighlight.t list option t
  20. | TextDocumentFoldingRange : Types.FoldingRangeParams.t -> Types.FoldingRange.t list option t
  21. | SignatureHelp : Types.SignatureHelpParams.t -> Types.SignatureHelp.t t
  22. | CodeAction : Types.CodeActionParams.t -> Types.CodeActionResult.t t
  23. | CodeActionResolve : Types.CodeAction.t -> Types.CodeAction.t t
  24. | CompletionItemResolve : Types.CompletionItem.t -> Types.CompletionItem.t t
  25. | WillSaveWaitUntilTextDocument : Types.WillSaveTextDocumentParams.t -> Types.TextEdit.t list option t
  26. | TextDocumentFormatting : Types.DocumentFormattingParams.t -> Types.TextEdit.t list option t
  27. | TextDocumentOnTypeFormatting : Types.DocumentOnTypeFormattingParams.t -> Types.TextEdit.t list option t
  28. | TextDocumentColorPresentation : Types.ColorPresentationParams.t -> Types.ColorPresentation.t list t
  29. | TextDocumentColor : Types.DocumentColorParams.t -> Types.ColorInformation.t list t
  30. | SelectionRange : Types.SelectionRangeParams.t -> Types.SelectionRange.t list t
  31. | ExecuteCommand : Types.ExecuteCommandParams.t -> Import.Json.t t
  32. | SemanticTokensFull : Types.SemanticTokensParams.t -> Types.SemanticTokens.t option t
  33. | SemanticTokensDelta : Types.SemanticTokensDeltaParams.t -> [ `SemanticTokens of Types.SemanticTokens.t | `SemanticTokensDelta of Types.SemanticTokensDelta.t ] option t
  34. | SemanticTokensRange : Types.SemanticTokensRangeParams.t -> Types.SemanticTokens.t option t
  35. | LinkedEditingRange : Types.LinkedEditingRangeParams.t -> Types.LinkedEditingRanges.t option t
  36. | UnknownRequest : {
    1. meth : string;
    2. params : Jsonrpc.Message.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.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:Jsonrpc.Message.Structured.t option -> Types.TextDocumentIdentifier.t option) -> Types.TextDocumentIdentifier.t option