struct LSP::Data::FormattingOptions
- LSP::Data::FormattingOptions
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
Defined in:
lsp/data/formatting_options.crConstructors
- .new(pull : JSON::PullParser)
- .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)
Instance Method Summary
-
#[](key : String)
Signature for further properties.
- #[]=(key : String, value : Bool | Int64 | String)
- #[]?(key : String)
- #insert_final_newline : Bool | Nil
- #insert_final_newline=(insert_final_newline : Bool | Nil)
- #insert_spaces : Bool
- #insert_spaces=(insert_spaces : Bool)
- #tab_size : Int64
- #tab_size=(tab_size : Int64)
- #trim_final_newlines : Bool | Nil
- #trim_final_newlines=(trim_final_newlines : Bool | Nil)
- #trim_trailing_whitespace : Bool | Nil
- #trim_trailing_whitespace=(trim_trailing_whitespace : Bool | Nil)
Constructor Detail
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)
#