struct LSP::Data::FormattingOptions

Included Modules

Defined in:

lsp/data/formatting_options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(tab_size : Int64 = 2_i64, insert_spaces : Bool = true, trim_trailing_whitespace : Bool | Nil = nil, insert_final_newline : Bool | Nil = nil, trim_final_newlines : Bool | Nil = nil, json_unmapped : Hash(String, JSON::Any) = {} of String => JSON::Any) #

[View source]

Instance Method Detail

def [](key : String) #

Signature for further properties. [key: string]: boolean | integer | string;


[View source]
def []=(key : String, value : Bool | Int64 | String) #

[View source]
def []?(key : String) #

[View source]
def insert_final_newline : Bool | Nil #

[View source]
def insert_final_newline=(insert_final_newline : Bool | Nil) #

[View source]
def insert_spaces : Bool #

[View source]
def insert_spaces=(insert_spaces : Bool) #

[View source]
def tab_size : Int64 #

[View source]
def tab_size=(tab_size : Int64) #

[View source]
def trim_final_newlines : Bool | Nil #

[View source]
def trim_final_newlines=(trim_final_newlines : Bool | Nil) #

[View source]
def trim_trailing_whitespace : Bool | Nil #

[View source]
def trim_trailing_whitespace=(trim_trailing_whitespace : Bool | Nil) #

[View source]