diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-04-25 16:57:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-04-25 16:57:52 +0800 |
commit | 71885b139cdae9f3d65268278882bd4793f4fe24 (patch) | |
tree | cf629bf48b8dfcf5652f1cbc150f1c5c50689011 /script/core | |
parent | 1c2ea3463e3dc07a9cf43947677169aaeada164e (diff) | |
download | lua-language-server-71885b139cdae9f3d65268278882bd4793f4fe24.zip |
export name and comment in returns
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/hover/description.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua index d515313b..f5890b21 100644 --- a/script/core/hover/description.lua +++ b/script/core/hover/description.lua @@ -512,6 +512,9 @@ return function (source) if source.type == 'string' then return asString(source) end + if source.type == 'doc.tailcomment' then + return source.text + end if source.type == 'field' then source = source.parent end |