diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-08-27 20:54:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-08-27 20:54:07 +0800 |
commit | 972e6458ed5c256cb3d1de05b585bc3fc55f82ad (patch) | |
tree | 6f8a8eb5adfff5f0410f60348a8ee3940a7ec5c3 /server/src/method | |
parent | a828a593e119ec222e4ef9e6a737234cabe00245 (diff) | |
download | lua-language-server-972e6458ed5c256cb3d1de05b585bc3fc55f82ad.zip |
分离函数调用与函数对象
Diffstat (limited to 'server/src/method')
-rw-r--r-- | server/src/method/textDocument/completion.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/method/textDocument/completion.lua b/server/src/method/textDocument/completion.lua index 1b9aa73f..eb33b3ce 100644 --- a/server/src/method/textDocument/completion.lua +++ b/server/src/method/textDocument/completion.lua @@ -80,6 +80,7 @@ return function (lsp, params) for i, item in ipairs(items) do item.sortText = ('%04d'):format(i) + item.insertTextFormat = 2 if item.textEdit then item.textEdit.range = posToRange(lines, item.textEdit.start, item.textEdit.finish) item.textEdit.start = nil |