Skip to content

Commit 37d982b

Browse files
committed
add formatter
1 parent 0ae02cd commit 37d982b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ if_condition_no_continuation_indent = false
4343

4444

4545
# optional crlf/lf
46-
end_of_line = lf
46+
end_of_line = auto
47+
detect_end_of_line = true
4748

4849
# [line layout]
4950
# The following configuration supports three expressions

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* `CHG` diagnostic:
66
+ `type-check`: removed for now
77
+ `no-implicit-any`: renamed to `no-unknown`
8+
* `CHG` formatter: no longer need` --preview`
89

910
## 2.6.8
1011
`2022-4-9`

script/provider/provider.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,6 @@ m.register 'textDocument/formatting' {
10191019
capability = {
10201020
documentFormattingProvider = true,
10211021
},
1022-
preview = true,
10231022
---@async
10241023
function(params)
10251024
local uri = files.getRealUri(params.textDocument.uri)
@@ -1057,7 +1056,6 @@ m.register 'textDocument/rangeFormatting' {
10571056
capability = {
10581057
documentRangeFormattingProvider = true,
10591058
},
1060-
preview = true,
10611059
---@async
10621060
function(params)
10631061
local uri = files.getRealUri(params.textDocument.uri)

0 commit comments

Comments
 (0)