LSP::Data::FormattingOptions
Inherits JSON::Serializable::Unmapped < JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(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)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
[]=(key : String, value : Bool | Int64 | String)
Source[]?(key : String)
Sourceinsert_final_newline=(insert_final_newline : Bool | Nil)
Insert a newline character at the end of the file if one does not exist.
trim_final_newlines=(trim_final_newlines : Bool | Nil)
Trim all newlines after the final newline at the end of the file.
trim_trailing_whitespace=(trim_trailing_whitespace : Bool | Nil)
Trim trailing whitespace on a line.