summaryrefslogtreecommitdiff
path: root/script/vm/global-manager.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-03-11 02:03:30 +0800
committersumneko <sumneko@hotmail.com>2022-03-11 02:03:30 +0800
commit9512eec020d1ee186d3fe684cd9c2493c5672fc7 (patch)
treeadcc0276bd04058a4ab83f8705900cb292cead25 /script/vm/global-manager.lua
parent54b1e1123f242e5b5ffe8cc5ca51afe3cf18b4a1 (diff)
downloadlua-language-server-9512eec020d1ee186d3fe684cd9c2493c5672fc7.zip
update
Diffstat (limited to 'script/vm/global-manager.lua')
-rw-r--r--script/vm/global-manager.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/vm/global-manager.lua b/script/vm/global-manager.lua
index 3c42840c..f78faf7d 100644
--- a/script/vm/global-manager.lua
+++ b/script/vm/global-manager.lua
@@ -181,7 +181,11 @@ local compilerGlobalMap = util.switch()
local name = source[1]
local type = m.declareGlobal('type', name, uri)
type:addGet(uri, source)
- source._globalNode = type
+ if source.signs then
+ source._globalNode = source
+ else
+ source._globalNode = type
+ end
end)
: case 'doc.extends.name'
: call(function (source)