gleamunison/lsp_types
Shared LSP types and response builders. Both the protocol core (lsp.gleam) and the language features (lsp_features.gleam) need them; keeping them here breaks the import cycle between the two.
Types
pub type Message {
Message(
id: option.Option(dynamic.Dynamic),
method: String,
params: dict.Dict(String, dynamic.Dynamic),
)
}
Constructors
-
Message( id: option.Option(dynamic.Dynamic), method: String, params: dict.Dict(String, dynamic.Dynamic), )
Values
pub fn error_response(
id: dynamic.Dynamic,
code: Int,
message: String,
) -> String
pub fn id_json(id: dynamic.Dynamic) -> String
pub fn respond(id: dynamic.Dynamic, result: String) -> String