diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-19 18:05:24 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-19 18:05:24 +0800 |
commit | 8760bf99594594e009bc6aa2bb1816eb02fc7006 (patch) | |
tree | d4e6eca37523172c8272375681b0082bba623a0a /script/core | |
parent | 6e5a6359717eb286b11431759ad3295ad4ae7978 (diff) | |
download | lua-language-server-8760bf99594594e009bc6aa2bb1816eb02fc7006.zip |
fix #805
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/noder.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 371e0200..59c103e8 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -1036,7 +1036,8 @@ compileNodeMap = util.switch() if src.type == 'local' or src.type == 'tablefield' or src.type == 'tableindex' - or src.type == 'setglobal' then + or src.type == 'setglobal' + or guide.isGlobal(src) then if src.parent.type ~= 'funcargs' and not src.dummy then pushForward(noders, getID(src), id) |