diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-10 15:05:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-10 15:05:53 +0800 |
commit | 24543ab578b67bea57cf9f8c4817665a03515858 (patch) | |
tree | 90cb37c8a917ebadd4b637da1441b5492e07ec2b /script/core/noder.lua | |
parent | 770f21794065e42919a515da2a50a2cf1e1eff60 (diff) | |
download | lua-language-server-24543ab578b67bea57cf9f8c4817665a03515858.zip |
update
Diffstat (limited to 'script/core/noder.lua')
-rw-r--r-- | script/core/noder.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 2e1313a2..102245d9 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -953,7 +953,14 @@ compileNodeMap = util.switch() pushForward(noders, getID(source.class), id) if source.extends then for _, ext in ipairs(source.extends) do - pushBackward(noders, id, getID(ext)) + pushBackward(noders, id, getID(ext), { + filter = function (_, field) + return field ~= nil + end, + filterValid = function (_, field) + return not field + end + }) end end if source.bindSources then @@ -1262,7 +1269,8 @@ function m.compileNode(noders, source) collector.subscribe(uri, id, noders) if guide.isSet(source) -- local t = Global --> t: g:.Global - and source.type ~= 'local' then + and source.type ~= 'local' + and source.type ~= 'setlocal' then local defID = 'def:' .. id collector.subscribe(uri, defID, noders) |