summaryrefslogtreecommitdiff
path: root/script-beta/core/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-15 15:38:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-15 15:38:51 +0800
commit7970d6ca48f3509c7cfe29a8b81ae7777d6f2556 (patch)
tree01fae280b0af5623648378f1a7602cfe8ba98192 /script-beta/core/diagnostics
parent0d90e06156bdf0caf7ab5818d7b3b4be71842a47 (diff)
downloadlua-language-server-7970d6ca48f3509c7cfe29a8b81ae7777d6f2556.zip
修正一些问题
Diffstat (limited to 'script-beta/core/diagnostics')
-rw-r--r--script-beta/core/diagnostics/unused-function.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/diagnostics/unused-function.lua b/script-beta/core/diagnostics/unused-function.lua
index f417fd92..2bf3084a 100644
--- a/script-beta/core/diagnostics/unused-function.lua
+++ b/script-beta/core/diagnostics/unused-function.lua
@@ -22,7 +22,7 @@ return function (uri, callback)
return
end
local hasGet
- local refs = guide.requestReference(source)
+ local refs = vm.getRefs(source)
for _, src in ipairs(refs) do
if vm.isGet(src) then
hasGet = true