struct ACP::Protocol::InitializeParams

Overview

Params for the initialize method (Client → Agent).

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(protocol_version : UInt16, client_capabilities : ClientCapabilities, client_info : ClientInfo | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def client_capabilities : ClientCapabilities #

Capabilities the client advertises to the agent.


[View source]
def client_capabilities=(client_capabilities : ClientCapabilities) #

Capabilities the client advertises to the agent.


[View source]
def client_info : ClientInfo | Nil #

Metadata about the client application. Note: in future versions of the protocol, this will be required.


[View source]
def client_info=(client_info : ClientInfo | Nil) #

Metadata about the client application. Note: in future versions of the protocol, this will be required.


[View source]
def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]
def protocol_version : UInt16 #

The ACP protocol version the client supports.


[View source]
def protocol_version=(protocol_version : UInt16) #

The ACP protocol version the client supports.


[View source]