diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-29 16:38:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-29 16:38:07 +0800 |
commit | 155ee2059dd18d805140b87901d01ff79257ed60 (patch) | |
tree | 26b80a361a112170970cffcb84c3594330461db1 /script-beta/core/hover/name.lua | |
parent | a64957132d5c9ecf6c66003ff028d68772d1aa1f (diff) | |
download | lua-language-server-155ee2059dd18d805140b87901d01ff79257ed60.zip |
支持部分library
Diffstat (limited to 'script-beta/core/hover/name.lua')
-rw-r--r-- | script-beta/core/hover/name.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script-beta/core/hover/name.lua b/script-beta/core/hover/name.lua index b96a8169..83c750c3 100644 --- a/script-beta/core/hover/name.lua +++ b/script-beta/core/hover/name.lua @@ -28,6 +28,12 @@ local function asGlobal(source) end local function buildName(source) + if source.doc then + return source.doc + end + if source.name then + return source.name + end if source.type == 'local' or source.type == 'getlocal' or source.type == 'setlocal' then |