diff options
-rw-r--r-- | script-beta/core/completion.lua | 2 | ||||
-rw-r--r-- | test-beta/completion/init.lua | 1 |
2 files changed, 1 insertions, 2 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 diff --git a/test-beta/completion/init.lua b/test-beta/completion/init.lua index ce245416..20fd01cf 100644 --- a/test-beta/completion/init.lua +++ b/test-beta/completion/init.lua @@ -1656,7 +1656,6 @@ global zzz: integer = 1 } } -do return end TEST [[ ---@param x string ---| "'选项1'" # 注释1 |