diff options
author | sumneko <sumneko@hotmail.com> | 2022-03-11 02:03:30 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-03-11 02:03:30 +0800 |
commit | 9512eec020d1ee186d3fe684cd9c2493c5672fc7 (patch) | |
tree | adcc0276bd04058a4ab83f8705900cb292cead25 /script/vm/global-manager.lua | |
parent | 54b1e1123f242e5b5ffe8cc5ca51afe3cf18b4a1 (diff) | |
download | lua-language-server-9512eec020d1ee186d3fe684cd9c2493c5672fc7.zip |
update
Diffstat (limited to 'script/vm/global-manager.lua')
-rw-r--r-- | script/vm/global-manager.lua | 6 |
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) |