class LSProtocol::DocumentOnTypeFormattingParams

Overview

The parameters of a DocumentOnTypeFormattingRequest.

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ch : String | Nil, options : FormattingOptions | Nil, position : Position | Nil, text_document : TextDocumentIdentifier | Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ch : String #

The character that has been typed that triggered the formatting on type request. That is not necessarily the last character that got inserted into the document since the client could auto insert characters as well (e.g. like automatic brace completion).


[View source]
def options : FormattingOptions #

The formatting options.


[View source]
def position : Position #

The position around which the on type formatting should happen. This is not necessarily the exact position where the character denoted by the property #ch got typed.


[View source]
def text_document : TextDocumentIdentifier #

The document to format.


[View source]