summaryrefslogtreecommitdiff
path: root/server-beta/src/searcher/eachRef.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-04 21:11:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-04 21:11:25 +0800
commit8f505a0b999d1432dfc107133e7ac2ba591cbed2 (patch)
tree2c8fa5d0f71232fa18811dcf1750a209f1502e06 /server-beta/src/searcher/eachRef.lua
parent6376ac1a2d98280304221243b00a1bc8cac74dc3 (diff)
downloadlua-language-server-8f505a0b999d1432dfc107133e7ac2ba591cbed2.zip
更新实现
Diffstat (limited to 'server-beta/src/searcher/eachRef.lua')
-rw-r--r--server-beta/src/searcher/eachRef.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/server-beta/src/searcher/eachRef.lua b/server-beta/src/searcher/eachRef.lua
index 7b2e3a27..649206e6 100644
--- a/server-beta/src/searcher/eachRef.lua
+++ b/server-beta/src/searcher/eachRef.lua
@@ -274,7 +274,12 @@ local function ofGoTo(source, callback)
end
local function ofLabel(source, callback)
-
+ if source.ref then
+ callback {
+ source = source.ref,
+ mode = 'get',
+ }
+ end
end
local function ofMain(source, callback)