From 5e36b0a2861368e602635f529a9d4592db7eee92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 25 Nov 2021 16:37:00 +0800 Subject: fix #816 --- changelog.md | 1 + script/core/noder.lua | 15 +++++---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/changelog.md b/changelog.md index 22bdec17..440f40f1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # changelog ## 2.4.11 +* `FIX` [#816](https://github.com/sumneko/lua-language-server/issues/816) * `FIX` [#817](https://github.com/sumneko/lua-language-server/issues/817) * `FIX` [#818](https://github.com/sumneko/lua-language-server/issues/818) * `FIX` [#820](https://github.com/sumneko/lua-language-server/issues/820) diff --git a/script/core/noder.lua b/script/core/noder.lua index ab8d2aa4..19ff4048 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -1047,16 +1047,11 @@ compileNodeMap = util.switch() end if source.bindSources then for _, src in ipairs(source.bindSources) do - if src.type == 'local' - or src.type == 'tablefield' - or src.type == 'tableindex' - or src.type == 'setglobal' - or guide.isGlobal(src) then - if src.parent.type ~= 'funcargs' - and not src.dummy then - pushForward(noders, getID(src), id) - pushForward(noders, id, getID(src)) - end + if src.parent.type ~= 'funcargs' + and src.type ~= 'setmethod' + and not src.dummy then + pushForward(noders, getID(src), id) + pushForward(noders, id, getID(src)) end end end -- cgit v1.2.3