summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-11 19:59:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-11 19:59:51 +0800
commit56799393afa0dac4ffba5cb9cadfdb46387e369f (patch)
tree5f63aee52527603fa1c6581a2522a68808dab50a /script-beta
parent23673d7c4953d4d99d9b59b449ead9b403177cb4 (diff)
downloadlua-language-server-56799393afa0dac4ffba5cb9cadfdb46387e369f.zip
自动完成显示 enum 的注释
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua
index aff4d9f3..a959a8c9 100644
--- a/script-beta/core/completion.lua
+++ b/script-beta/core/completion.lua
@@ -923,7 +923,7 @@ local function getCallEnums(source, index)
for _, enum in ipairs(vm.getDocEnums(doc.extends)) do
enums[#enums+1] = {
label = enum[1],
- description = nil,
+ description = enum.comment,
kind = define.CompletionItemKind.EnumMember,
}
end