diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-01 11:34:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-01 11:34:09 +0800 |
commit | 4466051f18270c83a9d7a90f7fb9c19bfacf4d40 (patch) | |
tree | cac4cd2a59ca1ec6b3e29e8ef7129cbfbefca54b /script | |
parent | ee1195cfadd0e290aa8de2487d9df7902d05ac51 (diff) | |
download | lua-language-server-4466051f18270c83a9d7a90f7fb9c19bfacf4d40.zip |
fix #273 missing signature help of global function
Diffstat (limited to 'script')
-rw-r--r-- | script/core/signature.lua | 1 |
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) |