class

LSProtocol::Command

Inherits JSON::Serializable / Reference / Object

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.

Constructors

new(command : String | Nil, title : String | Nil, arguments : Array(LSPAny) | Nil = nil, tooltip : String | Nil = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

arguments

Arguments that the command handler should be invoked with.

Source
command

The identifier of the actual command handler.

Source
title

Title of the command, like save.

Source
tooltip

An optional tooltip.

@since 3.18.0 @proposed

Source