package lsp

  1. Overview
  2. Docs
LSP protocol implementation in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

jsonrpc-1.7.0.tbz
sha256=ca43b6608366ddf891d7c1e1cc38de2c7f93a6da0511de164959db1f88fc42ed
sha512=43a00604f25bd1d3e93bfd43f1ef9c4cad9aa392c15a5db0c5ba0264f396e7ca6f60a0293467609402e87aeec441a05e7ee2990b37c98dc27b92a22afbebfd02

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.