package lsp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val make : position_encoding:[ `UTF8 | `UTF16 ] -> Types.DidOpenTextDocumentParams.t -> t
val languageId : t -> string
val documentUri : t -> Lsp__.Uri0.t
val version : t -> int
val text : t -> string
exception Invalid_utf8
val apply_content_changes : ?version:int -> t -> Types.TextDocumentContentChangeEvent.t list -> t
val set_version : t -> version:int -> t
val apply_text_document_edits : t -> Types.TextEdit.t list -> t

Apply a list of non overlapping text edits. The order of application matters when multiple inserts are done in the same position. All the offsets are interpreted relative to the original document.

OCaml

Innovation. Community. Security.