summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-01 11:34:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-01 11:34:09 +0800
commit4466051f18270c83a9d7a90f7fb9c19bfacf4d40 (patch)
treecac4cd2a59ca1ec6b3e29e8ef7129cbfbefca54b /script
parentee1195cfadd0e290aa8de2487d9df7902d05ac51 (diff)
downloadlua-language-server-4466051f18270c83a9d7a90f7fb9c19bfacf4d40.zip
fix #273 missing signature help of global function
Diffstat (limited to 'script')
-rw-r--r--script/core/signature.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/core/signature.lua b/script/core/signature.lua
index d1fdd246..bd823454 100644
--- a/script/core/signature.lua
+++ b/script/core/signature.lua
@@ -81,6 +81,7 @@ local function makeSignatures(call, pos)
local signs = {}
local defs = vm.getDefs(node, 0)
for _, src in ipairs(defs) do
+ src = guide.getObjectValue(src) or src
if src.type == 'function'
or src.type == 'doc.type.function' then
signs[#signs+1] = makeOneSignature(src, oop, index)