summaryrefslogtreecommitdiff
path: root/script/core/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-09 20:00:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-09 20:00:05 +0800
commitd99c23af4bf8be944f58b374141dbfb81d48b5f5 (patch)
tree185e92fac5c0e28a80e772a9fdad5b0a6a4bbfd8 /script/core/hover
parentbc92c4dcefc0c87420c7d4b239c1eb4b9d14588c (diff)
downloadlua-language-server-d99c23af4bf8be944f58b374141dbfb81d48b5f5.zip
#1061 completion for `doc.type.code`
Diffstat (limited to 'script/core/hover')
-rw-r--r--script/core/hover/description.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index e3c3f412..3fef1a21 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -155,7 +155,8 @@ local function buildEnumChunk(docType, name)
types[#types+1] = vm.getInfer(tp):view(guide.getUri(docType))
if tp.type == 'doc.type.string'
or tp.type == 'doc.type.integer'
- or tp.type == 'doc.type.boolean' then
+ or tp.type == 'doc.type.boolean'
+ or tp.type == 'doc.type.code' then
enums[#enums+1] = tp
end
local comment = tryDocClassComment(tp)