package linol

  1. Overview
  2. Docs
LSP server library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

linol-0.12.tbz
sha256=c748f3c03525c1f438ccba7b71d31e91ae7bf4f857fade61005cc4533e3b7fc5
sha512=bc29a1ccf8bfbe7ba39f167397f2d45729e948bfc2db628ba24a1e5239ec64cda7c8356c3824e3c66a3630ca2addb58b444829707f155c2b58aef26c0ddfcabb

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