LSProtocol::FormattingOptions
Inherits JSON::Serializable / Reference / Object
Value-object describing what options formatting should use.
Constructors
new(insert_spaces : Bool | Nil, tab_size : UInt32 | Nil, insert_final_newline : Bool | Nil = nil, trim_final_newlines : Bool | Nil = nil, trim_trailing_whitespace : Bool | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
insert_final_newline
Insert a newline character at the end of the file if one does not exist.
@since 3.15.0
trim_final_newlines
Trim all newlines after the final newline at the end of the file.
@since 3.15.0