class

LSP::Server

Inherits Reference < Object

This is the class for a language server, it handles HTTP over IO.

Subclass this to create a server for a specific language:

class Server < LSP::Server method "text/didChange", DidChangeRequest end

Constructors

new(in __arg0 : IO, out __arg1 : IO)
Source

Instance methods

log(message : String, type = 4)

A method to send a log message notification

Source
prepend_header(content : String)
Source
process(contents)
Source
read

Reads a message from the input IO, and converts to a Message object, calls execute on it and send the result if it's a request message.

Source
send(content : String)
Source
send_notification(method, params)
Source
send_request(id, method, params)
Source
send_response(id, result)
Source
show_message_request(message : String, type = 4)

A method to send a show message request

Source