class LSProtocol::ColorPresentation

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(label : String | Nil, additional_text_edits : Array(TextEdit) | Nil = nil, text_edit : TextEdit | Nil = nil) #

[View source]

Instance Method Detail

def additional_text_edits : Array(TextEdit) | Nil #

[View source]
def label : String #

The label of this color presentation. It will be shown on the color picker header. By default this is also the text that is inserted when selecting this color presentation.


[View source]
def text_edit : TextEdit | Nil #

[View source]