diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-11 19:59:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-11 19:59:51 +0800 |
commit | 56799393afa0dac4ffba5cb9cadfdb46387e369f (patch) | |
tree | 5f63aee52527603fa1c6581a2522a68808dab50a /script-beta | |
parent | 23673d7c4953d4d99d9b59b449ead9b403177cb4 (diff) | |
download | lua-language-server-56799393afa0dac4ffba5cb9cadfdb46387e369f.zip |
自动完成显示 enum 的注释
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/core/completion.lua | 2 |
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 |