From f501deff48a30e937afdcb528aba942648c4888b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 25 Sep 2019 11:42:23 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9C=AA=E4=BD=BF=E7=94=A8=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E9=80=8F=E6=98=8E=E7=9D=80=E8=89=B2=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/diagnostics.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/core') diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index e5fd0ba5..8584897e 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -73,7 +73,7 @@ function mt:searchUnusedFunctions(callback) if info.type == 'set' or info.type == 'local' then local v = src:bindValue() local func = v and v:getFunction() - if func then + if func and func:getSource().uri == self.vm.uri then callback(func:getSource().start, func:getSource().finish) end end -- cgit v1.2.3