summaryrefslogtreecommitdiff
path: root/script/core/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-02 19:29:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-02 19:29:35 +0800
commit0fc72b8bb723f8fb38002dd4d10f8ef86c2c7dfd (patch)
treeb3ad27c708999c27dcff3fc3c5b12f778563acf7 /script/core/hover
parent02dd5b6557d3e70859bc3ddb234f8924b0166221 (diff)
downloadlua-language-server-0fc72b8bb723f8fb38002dd4d10f8ef86c2c7dfd.zip
cleanup
Diffstat (limited to 'script/core/hover')
-rw-r--r--script/core/hover/description.lua2
-rw-r--r--script/core/hover/init.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index 0bbe510a..bd584d74 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -131,7 +131,7 @@ local function packSee(see)
local name = see.name[1]
local buf = {}
local target
- for _, symbol in ipairs(wssymbol(name)) do
+ for _, symbol in ipairs(wssymbol(name, guide.getUri(see))) do
if symbol.name == name then
target = symbol.source
break
diff --git a/script/core/hover/init.lua b/script/core/hover/init.lua
index 2051623c..d9fb2b6d 100644
--- a/script/core/hover/init.lua
+++ b/script/core/hover/init.lua
@@ -16,7 +16,7 @@ local function getHover(source)
local descMark = {}
if source.type == 'doc.see.name' then
- for _, symbol in ipairs(wssymbol(source[1])) do
+ for _, symbol in ipairs(wssymbol(source[1], guide.getUri(source))) do
if symbol.name == source[1] then
source = symbol.source
break