package lsp

  1. Overview
  2. Docs
LSP protocol implementation in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

jsonrpc-1.6.1.tbz
sha256=bccc0d7194714a4c40c362766ad9095d3c58505a1d4f1dc4becd9b3d1bda8209
sha512=199bee8c74aec6822bc83bf9a7c3757206bdaa55a19cd1f5cf480127618a078baa1e917f6a90a6135a5277e4eb87977e685c10e6503f546997e6b985949e190f

doc/lsp.stdune/Stdune/Console/index.html

Module Stdune.ConsoleSource

Manages the console

The console is a system than can report messages and a status to the user. It is usually the terminal the application is connected to, however it could be something else. This module allow to set a global backend for the application as well as composing backends.

Sourcemodule Backend : sig ... end

The main backend for the application

include Backend.S
Sourceval print_user_message : User_message.t -> unit

Format and print a user message to the console

Sourceval set_status_line : User_message.Style.t Pp.t option -> unit

Change the status line

Sourceval print_if_no_status_line : User_message.Style.t Pp.t -> unit

Print a message if the backend does not display the status line. This is needed so that the important status changes show up even when a dumb terminal backend is used.

Sourceval reset : unit -> unit

Reset the log output

Sourceval print : User_message.Style.t Pp.t list -> unit

print paragraphs is a short-hand for:

 print_user_message (User_message.make paragraphs) 
Sourcemodule Status_line : sig ... end

This module allows to buffer status updates so that they don't slow down the application

OCaml

Innovation. Community. Security.