diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-20 17:25:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 17:25:07 +0800 |
commit | 924aa359e0dd426013dff07df9d8be8cc2d95818 (patch) | |
tree | b44c30f65b1e94f83aedb0579257243ace89f4eb /script/vm | |
parent | 2fac2371d904d03a46092602ece92dceb22844e3 (diff) | |
parent | 217aa4e586b1786bc6b82828279b745a29290f4d (diff) | |
download | lua-language-server-924aa359e0dd426013dff07df9d8be8cc2d95818.zip |
Merge pull request #340 from uhziel/doc-type-table
添加对 EmmyLua table type 的支持
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/getDocs.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua index 632dd1c2..790a9b50 100644 --- a/script/vm/getDocs.lua +++ b/script/vm/getDocs.lua @@ -16,6 +16,11 @@ local function getTypesOfFile(uri) or src.type == 'doc.class.name' or src.type == 'doc.extends.name' or src.type == 'doc.alias.name' then + if src.type == 'doc.type.name' then + if guide.getParentDocTypeTable(src) then + return + end + end local name = src[1] if name then if not types[name] then |