diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-28 16:22:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-28 16:22:30 +0800 |
commit | 08ad84a4f6c579a12e7a7e92d438f60c5c360044 (patch) | |
tree | 92d3c1f85bdeb536248f5d26d8e8e44705082475 /server/src/core | |
parent | 6f3cb7196f0230f6cf18b21a1617d133d32d611c (diff) | |
download | lua-language-server-08ad84a4f6c579a12e7a7e92d438f60c5c360044.zip |
先截断吧
Diffstat (limited to 'server/src/core')
-rw-r--r-- | server/src/core/completion.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua index 29a3637e..0373e394 100644 --- a/server/src/core/completion.lua +++ b/server/src/core/completion.lua @@ -258,13 +258,10 @@ local function searchInArg(vm, inCall, inString, callback) for _, v in ipairs(results) do if v ~= inString[1] then local sep = inString[1]:find('[^%w_][%w_]-$') - local insertText if sep then - --v = v:sub(sep+1) + v = v:sub(sep+1) end - callback(v, CompletionItemKind.File, { - insertText = insertText, - }) + callback(v, CompletionItemKind.File) end end end |