LSP::FormattingOptions
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(trim_trailing_whitespace : Bool | Nil, insert_final_new_line : Bool | Nil, trim_final_new_lines : Bool | Nil, insert_spaces : Bool, tab_size : Int32)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
Insert a newline character at the end of the file if one does not exist.
@since 3.15.0
insert_final_new_line?
Insert a newline character at the end of the file if one does not exist.
@since 3.15.0
Trim all newlines after the final newline at the end of the file.
@since 3.15.0
trim_final_new_lines?
Trim all newlines after the final newline at the end of the file.
@since 3.15.0
Trim trailing whitespace on a line.
@since 3.15.0