diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-16 10:32:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-16 10:32:28 +0800 |
commit | 6da6846090b5c341c4cbb2da8da790779e9de07e (patch) | |
tree | 358246d35bb8857765407a375ce699a9b70874d5 /script-beta/vm/getLibrary.lua | |
parent | 780ab0ef7daeb7c8a1d11698275c80c1641ed5e5 (diff) | |
download | lua-language-server-6da6846090b5c341c4cbb2da8da790779e9de07e.zip |
显示api的文档
Diffstat (limited to 'script-beta/vm/getLibrary.lua')
-rw-r--r-- | script-beta/vm/getLibrary.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/vm/getLibrary.lua b/script-beta/vm/getLibrary.lua index 8b955c7c..f02c78a2 100644 --- a/script-beta/vm/getLibrary.lua +++ b/script-beta/vm/getLibrary.lua @@ -5,6 +5,9 @@ local function getLibrary(source) if source.type == 'library' then return source end + if source.library then + return source.library + end local defs = vm.getDefs(source) for _, def in ipairs(defs) do if def.type == 'library' then |