class LSProtocol::DocumentOnTypeFormattingRegistrationOptions
- LSProtocol::DocumentOnTypeFormattingRegistrationOptions
- Reference
- Object
Overview
Registration options for a DocumentOnTypeFormattingRequest
.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(document_selector : DocumentSelector | Nil, first_trigger_character : String | Nil, more_trigger_character : Array(String) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#document_selector : DocumentSelector | Nil
A document selector to identify the scope of the registration.
-
#first_trigger_character : String
A character on which formatting should be triggered, like
{
. -
#more_trigger_character : Array(String) | Nil
More trigger characters.
Constructor Detail
def self.new(document_selector : DocumentSelector | Nil, first_trigger_character : String | Nil, more_trigger_character : Array(String) | Nil = nil)
#
Instance Method Detail
def document_selector : DocumentSelector | Nil
#
A document selector to identify the scope of the registration. If set to null the document selector provided on the client side will be used.