class LSP::Server
- LSP::Server
- Reference
- Object
Overview
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
Direct Known Subclasses
Defined in:
lsp/server.crConstructors
Instance Method Summary
-
#log(message : String, type = 4)
A method to send a log message notification
- #prepend_header(content : String)
- #process(contents)
-
#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.
- #send(content : String)
- #send_notification(method, params)
- #send_request(id, method, params)
- #send_response(id, result)
-
#show_message_request(message : String, type = 4)
A method to send a show message request
Constructor Detail
Instance Method Detail
def 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.
A method to send a show message request