package linol

  1. Overview
  2. Docs
LSP server library

Install

Dune Dependency

Authors

Maintainers

Sources

linol-0.10.tbz
sha256=174bb8cad5b8b0c260d62b0a85da13c4f5caba4fcee042ee58284b09de7896ea
sha512=77460788407c72a33fbe289ec9c78421117543594b3524a5c8fe836f0e272c5ceb1e1074b91c1d1f476f89b75b6f63847a8021675a782ff36457c9626121a7f4

doc/linol.lsp/Linol_lsp/Text_document/index.html

Module Linol_lsp.Text_documentSource

Sourcetype t
type encoding := [
  1. | `UTF8
  2. | `UTF16
]
Sourceval make : position_encoding:encoding -> Types.DidOpenTextDocumentParams.t -> t
Sourceval languageId : t -> string
Sourceval documentUri : t -> Uri0.t
Sourceval position_encoding : t -> encoding
Sourceval version : t -> int
Sourceval text : t -> string
Sourcetype invalid_utf =
  1. | Malformed of string
  2. | Insufficient_input
Sourceexception Invalid_utf of invalid_utf
Sourceval apply_content_changes : ?version:int -> t -> Types.TextDocumentContentChangeEvent.t list -> t
Sourceval set_version : t -> version:int -> t
Sourceval 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.

Sourceval absolute_position : t -> Types.Position.t -> int

absolute_position t pos returns the absolute position of pos inside text t. If the position is outside the bounds of the document, the offset returned will be the length of the document. pos is interpreted with position_encoding t

Sourceval absolute_range : t -> Types.Range.t -> int * int
OCaml

Innovation. Community. Security.