struct LSP::Data::Command

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

Defined in:

lsp/data/command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(title : String = "", command : String = "", arguments : Array(JSON::Any) = [] of JSON::Any) #

[View source]

Instance Method Detail

def arguments : Array(JSON::Any) #

Arguments that the command handler should be invoked with.


[View source]
def arguments=(arguments : Array(JSON::Any)) #

Arguments that the command handler should be invoked with.


[View source]
def command : String #

The identifier of the actual command handler.


[View source]
def command=(command : String) #

The identifier of the actual command handler.


[View source]
def title : String #

Title of the command, like save.


[View source]
def title=(title : String) #

Title of the command, like save.


[View source]