summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
authorCppCXY <812125110@qq.com>2022-02-22 14:06:47 +0800
committerCppCXY <812125110@qq.com>2022-02-22 14:06:47 +0800
commitaa13abab66752f42081f8d61d7fb415d03953364 (patch)
tree55830fba4b6ed0bcff27670a1bb5fdaf8504e244 /script/provider/provider.lua
parente518eed9efd99c46b79c9413c5f34a0f675ab9e6 (diff)
downloadlua-language-server-aa13abab66752f42081f8d61d7fb415d03953364.zip
编辑器设置优先
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index f5bace80..f516e1af 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1019,7 +1019,7 @@ m.register 'textDocument/formatting' {
pformatting.updateConfig(uri)
local core = require 'core.formatting'
- local edits = core(uri)
+ local edits = core(uri, params.options)
if not edits or #edits == 0 then
return nil
end
@@ -1057,7 +1057,7 @@ m.register 'textDocument/rangeFormatting' {
pformatting.updateConfig(uri)
local core = require 'core.rangeformatting'
- local edits = core(uri, params.range)
+ local edits = core(uri, params.range, params.options)
if not edits or #edits == 0 then
return nil
end