class LSProtocol::Command
- LSProtocol::Command
- Reference
- Object
Overview
Represents a reference to a command. Provides a title which will be used to represent a command in the UI and, optionally, an array of arguments which will be passed to the command handler function when invoked.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(command : String | Nil, title : String | Nil, arguments : Array(LSPAny) | Nil = nil, tooltip : String | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#arguments : Array(LSPAny) | Nil
Arguments that the command handler should be invoked with.
-
#command : String
The identifier of the actual command handler.
-
#title : String
Title of the command, like
save
. -
#tooltip : String | Nil
An optional tooltip.
Constructor Detail
def self.new(command : String | Nil, title : String | Nil, arguments : Array(LSPAny) | Nil = nil, tooltip : String | Nil = nil)
#
Instance Method Detail
Arguments that the command handler should be invoked with.