diff options
author | Andreas <andreas.matthias@gmail.com> | 2024-02-24 20:05:54 +0100 |
---|---|---|
committer | Andreas <andreas.matthias@gmail.com> | 2024-02-24 20:49:06 +0100 |
commit | a3c731f91e05a9efe658c3da6e7c905829d65b52 (patch) | |
tree | 6c5d7c46147ddb3a9701fdc6fc82a158fe46d394 /script | |
parent | 21d20b1522d2e76cb511b016d90dbd89d2acdcbc (diff) | |
download | lua-language-server-a3c731f91e05a9efe658c3da6e7c905829d65b52.zip |
Desc/rawdesc for vararg expressions in JSON output.
Diffstat (limited to 'script')
-rw-r--r-- | script/core/hover/description.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua index 75189b06..0cbcc835 100644 --- a/script/core/hover/description.lua +++ b/script/core/hover/description.lua @@ -449,7 +449,8 @@ local function tyrDocParamComment(source) or source.type == 'getlocal' then source = source.node end - if source.type ~= 'local' then + if source.type ~= 'local' + and source.type ~= '...' then return end if source.parent.type ~= 'funcargs' then |