struct

LSP::Data::FormattingOptions

Inherits JSON::Serializable::Unmapped < JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

[](key : String)

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

Source
[]=(key : String, value : Bool | Int64 | String)
Source
[]?(key : String)
Source
insert_final_newline

Insert a newline character at the end of the file if one does not exist.

Source
insert_final_newline=(insert_final_newline : Bool | Nil)

Insert a newline character at the end of the file if one does not exist.

Source
insert_spaces

Prefer spaces over tabs.

Source
insert_spaces=(insert_spaces : Bool)

Prefer spaces over tabs.

Source
tab_size

Size of a tab in spaces.

Source
tab_size=(tab_size : Int64)

Size of a tab in spaces.

Source
trim_final_newlines

Trim all newlines after the final newline at the end of the file.

Source
trim_final_newlines=(trim_final_newlines : Bool | Nil)

Trim all newlines after the final newline at the end of the file.

Source
trim_trailing_whitespace

Trim trailing whitespace on a line.

Source
trim_trailing_whitespace=(trim_trailing_whitespace : Bool | Nil)

Trim trailing whitespace on a line.

Source