summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-09 15:16:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-09 15:16:49 +0800
commite32f17eb3cb4b98960f1f048bae654e43cf95984 (patch)
treeab487196b3ef6366b2eb1adcff36daef0d79f956 /script
parent05d9e522a839460d713fe942f985392e6b9d6602 (diff)
downloadlua-language-server-e32f17eb3cb4b98960f1f048bae654e43cf95984.zip
fix completion: incorrect callback
Diffstat (limited to 'script')
-rw-r--r--script/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 860126b9..17c4611f 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -1037,7 +1037,7 @@ local function mergeEnums(a, b, source)
textEdit = source and {
start = source.start,
finish = source.finish,
- newText = label,
+ newText = enum.insertText or label,
},
}
a[#a+1] = result