struct LSP::Data::Command
- LSP::Data::Command
- Struct
- Value
- Object
Overview
Represents a reference to a command. Provides a title which will be used to represent a command in the UI. Commands are identified by a string identifier. The protocol currently doesn't specify a set of well-known commands. So executing a command requires some tool extension code.
Included Modules
- JSON::Serializable
Defined in:
lsp/data/command.crConstructors
- .new(pull : JSON::PullParser)
- .new(title : String = "", command : String = "", arguments : Array(JSON::Any) = [] of JSON::Any)
Instance Method Summary
-
#arguments : Array(JSON::Any)
Arguments that the command handler should be invoked with.
-
#arguments=(arguments : Array(JSON::Any))
Arguments that the command handler should be invoked with.
-
#command : String
The identifier of the actual command handler.
-
#command=(command : String)
The identifier of the actual command handler.
-
#title : String
Title of the command, like
save
. -
#title=(title : String)
Title of the command, like
save
.
Constructor Detail
def self.new(title : String = "", command : String = "", arguments : Array(JSON::Any) = [] of JSON::Any)
#
Instance Method Detail
def arguments=(arguments : Array(JSON::Any))
#
Arguments that the command handler should be invoked with.