diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-09 20:00:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-09 20:00:05 +0800 |
commit | d99c23af4bf8be944f58b374141dbfb81d48b5f5 (patch) | |
tree | 185e92fac5c0e28a80e772a9fdad5b0a6a4bbfd8 /script/core/hover | |
parent | bc92c4dcefc0c87420c7d4b239c1eb4b9d14588c (diff) | |
download | lua-language-server-d99c23af4bf8be944f58b374141dbfb81d48b5f5.zip |
#1061 completion for `doc.type.code`
Diffstat (limited to 'script/core/hover')
-rw-r--r-- | script/core/hover/description.lua | 3 |
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) |