summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-18 10:07:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-18 10:07:43 +0800
commitde4cec30d4befc0de4bd264c16c52c1a575cd5d3 (patch)
treef02adc55fc4a6b007dba2b59e218bc3c6c69e8b8 /server/src/core
parent53addf4379d9fc9d5ff23a8888022c4dcc6883f5 (diff)
downloadlua-language-server-de4cec30d4befc0de4bd264c16c52c1a575cd5d3.zip
修正 # 的自动完成失效的问题
Diffstat (limited to 'server/src/core')
-rw-r--r--server/src/core/completion.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua
index 1fd0516f..d02897c7 100644
--- a/server/src/core/completion.lua
+++ b/server/src/core/completion.lua
@@ -487,9 +487,9 @@ local function searchSpecial(vm, source, word, callback, pos)
local label = table.concat(chars) .. '+1'
callback(label, nil, CompletionItemKind.Snippet, {
textEdit = {
- start = index.start,
+ start = inside.start + 1,
finish = index.finish,
- newText = ('[#%s] = '):format(label),
+ newText = ('%s] = '):format(label),
},
})
end