summaryrefslogtreecommitdiff
path: root/script/vm/global-manager.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-07 20:58:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-07 20:58:59 +0800
commit46974b3b740c7f58ecd8094392ab7f4c5c254f44 (patch)
tree97f947d5b63b9fd257db66cc5a868bccaa3909ea /script/vm/global-manager.lua
parenta31cb772fa4f1da3fd78e4d9f5a01729c22883f7 (diff)
downloadlua-language-server-46974b3b740c7f58ecd8094392ab7f4c5c254f44.zip
update
Diffstat (limited to 'script/vm/global-manager.lua')
-rw-r--r--script/vm/global-manager.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/script/vm/global-manager.lua b/script/vm/global-manager.lua
index 130a11db..2ffaf3da 100644
--- a/script/vm/global-manager.lua
+++ b/script/vm/global-manager.lua
@@ -165,6 +165,14 @@ local compilerGlobalMap = util.switch()
local alias = m.declareGlobal('type', name, uri)
alias:addSet(uri, source)
source._globalNode = alias
+
+ if source.signs then
+ source._generic = genericMgr(source)
+ for _, sign in ipairs(source.signs) do
+ source._generic:addSign(sign)
+ end
+ source.extends._generic = source._generic:getChild(source.extends)
+ end
end)
: case 'doc.type.name'
: call(function (source)