class LSProtocol::ColorPresentation
- LSProtocol::ColorPresentation
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(label : String | Nil, additional_text_edits : Array(TextEdit) | Nil = nil, text_edit : TextEdit | Nil = nil)
Instance Method Summary
- #additional_text_edits : Array(TextEdit) | Nil
-
#label : String
The label of this color presentation.
- #text_edit : TextEdit | Nil
Constructor Detail
def self.new(label : String | Nil, additional_text_edits : Array(TextEdit) | Nil = nil, text_edit : TextEdit | Nil = nil)
#
Instance Method Detail
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.