class

LSProtocol::StringValue

Inherits JSON::Serializable / Reference / Object

A string value used as a snippet is a template which allows to insert text and to control the editor cursor when insertion happens.

A snippet can define tab stops and placeholders with $1, $2 and ${3:foo}. $0 defines the final tab stop, it defaults to the end of the snippet. Variables are defined with $name and ${name:default value}.

@since 3.18.0 @proposed

Constructors

new(kind : String | Nil, value : String | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

kind

The kind of string value.

Source
value

The snippet string.

Source