package linol

  1. Overview
  2. Docs
LSP server library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

linol-0.11.tbz
sha256=6718c7ca79ebff542172f20f418f71f3f1679eb6120f543b5c5c28d85906e215
sha512=1e7e963b5af3ea861cc1367ee6e80fd9add8e6809229c2904f7a16e694cb48a2058063bd3856e6440e7b197f753474bf83c0c9ec2d78325cfef2b734eb9d4ca2

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