module

LSP::Codec

Class methods

read_message(io : IO, outstanding = {} of (String | Int64) => Message::AnyRequest) : Message::Any

Read a message using the LSP wire format, including headers. Silently swallows malformed lines/messages that get in the way. Raises IO::EOFError when the IO is out of data to be read.

Source
write_message(io : IO, message : Message::Any, outstanding = {} of (String | Int64) => Message::AnyRequest)

Write a message using the LSP wire format, including headers.

Source