diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-09 06:33:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-09 06:33:23 +0800 |
commit | 37d982bc8e5b2aa868d83611b33bce6b690942b4 (patch) | |
tree | 2b7a017efa0835a25fbd06dda95497ca0457e19a | |
parent | 0ae02cdbb37daa086ba146f3f71115dae5e4d44f (diff) | |
download | lua-language-server-37d982bc8e5b2aa868d83611b33bce6b690942b4.zip |
add formatter
-rw-r--r-- | .editorconfig | 3 | ||||
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | script/provider/provider.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/.editorconfig b/.editorconfig index 100b2c99..48df1807 100644 --- a/.editorconfig +++ b/.editorconfig @@ -43,7 +43,8 @@ if_condition_no_continuation_indent = false # optional crlf/lf -end_of_line = lf +end_of_line = auto +detect_end_of_line = true # [line layout] # The following configuration supports three expressions diff --git a/changelog.md b/changelog.md index 49dbc526..d455e918 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,7 @@ * `CHG` diagnostic: + `type-check`: removed for now + `no-implicit-any`: renamed to `no-unknown` +* `CHG` formatter: no longer need` --preview` ## 2.6.8 `2022-4-9` diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 62284823..4061f6b1 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -1019,7 +1019,6 @@ m.register 'textDocument/formatting' { capability = { documentFormattingProvider = true, }, - preview = true, ---@async function(params) local uri = files.getRealUri(params.textDocument.uri) @@ -1057,7 +1056,6 @@ m.register 'textDocument/rangeFormatting' { capability = { documentRangeFormattingProvider = true, }, - preview = true, ---@async function(params) local uri = files.getRealUri(params.textDocument.uri) |