class LSProtocol::Command

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

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(command : String | Nil, title : String | Nil, arguments : Array(LSPAny) | Nil = nil, tooltip : String | Nil = nil) #

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

[View source]

Instance Method Detail

def arguments : Array(LSPAny) | Nil #

Arguments that the command handler should be invoked with.


[View source]
def command : String #

The identifier of the actual command handler.


[View source]
def title : String #

Title of the command, like save.


[View source]
def tooltip : String | Nil #

An optional tooltip.

@since 3.18.0 @proposed


[View source]