diff options
author | CppCXY <812125110@qq.com> | 2022-08-11 19:36:29 +0800 |
---|---|---|
committer | CppCXY <812125110@qq.com> | 2022-08-11 19:36:29 +0800 |
commit | 40f191a85ea21bb64c427f9dab4bc597e2a0ea1b (patch) | |
tree | 5652e32d59d6ca1314b8517a5028bd623b7130e6 /script/provider/provider.lua | |
parent | e62d964ff57cc0b37eb908315f9afe3ce6a213d7 (diff) | |
download | lua-language-server-40f191a85ea21bb64c427f9dab4bc597e2a0ea1b.zip |
支持typeformat
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index 08b6ca93..3d012757 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -1107,7 +1107,7 @@ m.register 'textDocument/onTypeFormatting' { end local core = require 'core.type-formatting' local pos = converter.unpackPosition(uri, params.position) - local edits = core(uri, pos, ch) + local edits = core(uri, pos, ch, params.options) if not edits or #edits == 0 then return nil end |