summaryrefslogtreecommitdiff
path: root/script-beta/provider/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-10 14:10:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-10 14:10:01 +0800
commit328db97c169dfa44607acebd09bd63ca22491733 (patch)
tree752c84602e1d56fb6cf72b55aa3031222f560e05 /script-beta/provider/init.lua
parent680d5e7e34290d978abe1cba1c43b5321e5f5e79 (diff)
downloadlua-language-server-328db97c169dfa44607acebd09bd63ca22491733.zip
更新函数完成
Diffstat (limited to 'script-beta/provider/init.lua')
-rw-r--r--script-beta/provider/init.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/script-beta/provider/init.lua b/script-beta/provider/init.lua
index 6faae12e..d6cac333 100644
--- a/script-beta/provider/init.lua
+++ b/script-beta/provider/init.lua
@@ -312,13 +312,14 @@ proto.on('textDocument/completion', function (params)
if not result then
return nil
end
-
local items = {}
for i, res in ipairs(result) do
items[i] = {
- label = res.label,
- kind = res.kind,
- sortText = ('%04d'):format(i),
+ label = res.label,
+ kind = res.kind,
+ sortText = ('%04d'):format(i),
+ insertText = res.insertText,
+ insertTextFormat = res.insertTextFormat,
}
end