LSP::Server
Inherits Reference < Object
A Language Server Protocol generic implementation.
This server is basically an I/O loop receiving, replying, sending message and handling exceptions. Actual actions are delegated to an external class.
Constants
DEFAULT_SERVER_CAPABILITIES = LSP::ServerCapabilities.new(text_document_sync: LSP::TextDocumentSyncKind::Incremental)
Dummy default server capabilites.
Constructors
new(input : IO = STDIN, output : IO = STDOUT, server_capabilities : LSP::ServerCapabilities = DEFAULT_SERVER_CAPABILITIES)
Initialize a new LSP Server with the provided options.
Instance methods
Reply to a request initiated by the client with the provided result.
reply(request : LSP::RequestMessage, *, exception, do_not_log = false)
Reply to a request initiated by the client with an error message containing the exception details.
start(controller)
Source