fix: Don't rely on FormattingOptions::default()

Refs #1884
pull/1892/head
Blaž Hrastnik 3 years ago
parent 8702aaaefc
commit c18de0e8f0
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

@ -412,7 +412,11 @@ impl Document {
let offset_encoding = language_server.offset_encoding();
let request = language_server.text_document_formatting(
self.identifier(),
lsp::FormattingOptions::default(),
lsp::FormattingOptions {
tab_size: self.tab_width() as u32,
insert_spaces: matches!(self.indent_style, IndentStyle::Spaces(_)),
..Default::default()
},
None,
)?;

Loading…
Cancel
Save