Provide tab_size
when formatting document using LSP range formatting
This commit is contained in:
parent
71046bf911
commit
d8b885e3ec
2 changed files with 117 additions and 2 deletions
|
@ -2724,7 +2724,7 @@ impl Project {
|
|||
text_document,
|
||||
range: lsp::Range::new(buffer_start, buffer_end),
|
||||
options: lsp::FormattingOptions {
|
||||
tab_size: 4,
|
||||
tab_size,
|
||||
insert_spaces: true,
|
||||
insert_final_newline: Some(true),
|
||||
..Default::default()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue