class LSProtocol::ChangeAnnotation
- LSProtocol::ChangeAnnotation
- Reference
- Object
Overview
Additional information that describes document changes.
@since 3.16.0
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(label : String | Nil, description : String | Nil = nil, needs_confirmation : Bool | Nil = nil)
Instance Method Summary
-
#description : String | Nil
A human-readable string which is rendered less prominent in the user interface.
-
#label : String
A human-readable string describing the actual change.
-
#needs_confirmation : Bool | Nil
A flag which indicates that user confirmation is needed before applying the change.
Constructor Detail
def self.new(label : String | Nil, description : String | Nil = nil, needs_confirmation : Bool | Nil = nil)
#
Instance Method Detail
def description : String | Nil
#
A human-readable string which is rendered less prominent in the user interface.
def label : String
#
A human-readable string describing the actual change. The string is rendered prominent in the user interface.
def needs_confirmation : Bool | Nil
#
A flag which indicates that user confirmation is needed before applying the change.