class

LSP::Command

Inherits JSON::Serializable < LSP::Initializer < Reference < Object

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 recommended way to handle commands is to implement their execution on the server side if the client and server provides the corresponding capabilities. Alternatively the tool extension code could handle the command. The protocol currently doesn’t specify a set of well-known commands.

Constructors

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
arguments=(arguments : JSON::Any | Nil)

Arguments that the command handler should be invoked with.

Source
command

The identifier of the actual command handler.

Source
command=(command : String)

The identifier of the actual command handler.

Source
title

Title of the command, like save.

Source
title=(title : String)

Title of the command, like save.

Source