diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-27 17:39:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-27 17:39:08 +0800 |
commit | aa669fd32b51f338dfc76e8efd40ade98431537b (patch) | |
tree | 0de8afeef767e590572d72fe0f5557f974e349e3 /script/core | |
parent | f7e6d4f875f0733e7a61dfb767ed5acfc007fe69 (diff) | |
download | lua-language-server-aa669fd32b51f338dfc76e8efd40ade98431537b.zip |
fix #468
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 d081aa7f..3766d2f4 100644 --- a/script/core/hover/description.lua +++ b/script/core/hover/description.lua @@ -358,6 +358,9 @@ return function (source) if source.type == 'string' then return asString(source) end + if source.type == 'field' then + source = source.parent + end return tryDocOverloadToComment(source) or tryDocFieldUpComment(source) or tyrDocParamComment(source) |