mirror of
https://github.com/c-cube/linol.git
synced 2025-12-10 13:14:15 -05:00
2 lines
No EOL
5.9 KiB
HTML
2 lines
No EOL
5.9 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>server (linol-lwt.Linol_lwt.Jsonrpc2.server)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">linol-lwt</a> » <a href="../../index.html">Linol_lwt</a> » <a href="../index.html">Jsonrpc2</a> » server</nav><h1>Class <code>Jsonrpc2.server</code></h1></header><dl><dt class="spec instance-variable" id="val-docs"><a href="#val-docs" class="anchor"></a><code><span class="keyword">val</span> docs : (Lsp.Types.DocumentUri.t, <a href="../index.html#type-doc_state">doc_state</a>) Stdlib.Hashtbl.t</code></dt><dt class="spec instance-variable" id="val-_quit"><a href="#val-_quit" class="anchor"></a><code><span class="keyword">val</span> <span class="keyword">mutable</span> _quit : bool</code></dt></dl><dl><dt class="spec method" id="method-config_sync_opts"><a href="#method-config_sync_opts" class="anchor"></a><code><span class="keyword">method</span> config_sync_opts : Lsp.Types.TextDocumentSyncOptions.t</code></dt><dt class="spec method" id="method-find_doc"><a href="#method-find_doc" class="anchor"></a><code><span class="keyword">method</span> find_doc : Lsp.Types.DocumentUri.t <span>-></span> <a href="../index.html#type-doc_state">doc_state</a> option</code></dt><dt class="spec method" id="method-must_quit"><a href="#method-must_quit" class="anchor"></a><code><span class="keyword">method</span> must_quit : bool</code></dt><dt class="spec method" id="method-on_notif_doc_did_change"><a href="#method-on_notif_doc_did_change" class="anchor"></a><code><span class="keyword">method</span> <span class="keyword">virtual</span> on_notif_doc_did_change : notify_back:<a href="../class-notify_back/index.html">notify_back</a> <span>-></span> Lsp.Types.VersionedTextDocumentIdentifier.t <span>-></span> Lsp.Types.TextDocumentContentChangeEvent.t list <span>-></span> old_content:string <span>-></span> new_content:string <span>-></span> unit <a href="../IO/index.html#type-t">IO.t</a></code></dt><dt class="spec method" id="method-on_notif_doc_did_close"><a href="#method-on_notif_doc_did_close" class="anchor"></a><code><span class="keyword">method</span> <span class="keyword">virtual</span> on_notif_doc_did_close : notify_back:<a href="../class-notify_back/index.html">notify_back</a> <span>-></span> Lsp.Types.TextDocumentIdentifier.t <span>-></span> unit <a href="../IO/index.html#type-t">IO.t</a></code></dt><dt class="spec method" id="method-on_notif_doc_did_open"><a href="#method-on_notif_doc_did_open" class="anchor"></a><code><span class="keyword">method</span> <span class="keyword">virtual</span> on_notif_doc_did_open : notify_back:<a href="../class-notify_back/index.html">notify_back</a> <span>-></span> Lsp.Types.TextDocumentItem.t <span>-></span> content:string <span>-></span> unit <a href="../IO/index.html#type-t">IO.t</a></code></dt><dt class="spec method" id="method-on_notification"><a href="#method-on_notification" class="anchor"></a><code><span class="keyword">method</span> on_notification : notify_back:(Lsp.Server_notification.t <span>-></span> unit <a href="../IO/index.html#type-t">IO.t</a>) <span>-></span> Lsp.Client_notification.t <span>-></span> unit <a href="../IO/index.html#type-t">IO.t</a></code></dt><dt class="spec method" id="method-on_req_completion"><a href="#method-on_req_completion" class="anchor"></a><code><span class="keyword">method</span> on_req_completion : uri:Lsp__Types.DocumentUri.t <span>-></span> pos:Lsp__Types.Position.t <span>-></span> ctx:Lsp__Types.CompletionContext.t option <span>-></span> <a href="../index.html#type-doc_state">doc_state</a> <span>-></span> [ `CompletionList of Lsp__.Types.CompletionList.t | `List of Lsp__.Types.CompletionItem.t list ] option <a href="../IO/index.html#type-t">IO.t</a></code></dt><dt class="spec method" id="method-on_req_definition"><a href="#method-on_req_definition" class="anchor"></a><code><span class="keyword">method</span> on_req_definition : uri:Lsp__Types.DocumentUri.t <span>-></span> pos:Lsp__Types.Position.t <span>-></span> <a href="../index.html#type-doc_state">doc_state</a> <span>-></span> Lsp.Types.Locations.t option <a href="../IO/index.html#type-t">IO.t</a></code></dt><dt class="spec method" id="method-on_req_hover"><a href="#method-on_req_hover" class="anchor"></a><code><span class="keyword">method</span> on_req_hover : uri:Lsp__Types.DocumentUri.t <span>-></span> pos:Lsp__Types.Position.t <span>-></span> <a href="../index.html#type-doc_state">doc_state</a> <span>-></span> Lsp.Types.Hover.t option <a href="../IO/index.html#type-t">IO.t</a></code></dt><dt class="spec method" id="method-on_req_initialize"><a href="#method-on_req_initialize" class="anchor"></a><code><span class="keyword">method</span> on_req_initialize : Lsp.Types.InitializeParams.t <span>-></span> Lsp.Types.InitializeResult.t <a href="../IO/index.html#type-t">IO.t</a></code></dt><dt class="spec method" id="method-on_request"><a href="#method-on_request" class="anchor"></a><code><span class="keyword">method</span> on_request : a. <span class="type-var">'a</span> Lsp.Client_request.t <span>-></span> <span class="type-var">'a</span> <a href="../IO/index.html#type-t">IO.t</a></code></dt><dt class="spec method" id="method-on_request_unhandled"><a href="#method-on_request_unhandled" class="anchor"></a><code><span class="keyword">method</span> on_request_unhandled : r. <span class="type-var">'r</span> Lsp.Client_request.t <span>-></span> <span class="type-var">'r</span> <a href="../IO/index.html#type-t">IO.t</a></code></dt></dl></div></body></html> |