lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

Packing multiple returns into a table only shows first return value

Open mikuhl-dev opened this issue 1 year ago • 0 comments

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Type Checking

Expected Behaviour

The code below should show { [1]: string, [2]: number, [3]: table }

Actual Behaviour

image

Reproduction steps

---@return string foo
---@return number bar
---@return table baz
function test()
    return "foo", 123, {};
end;

local stuff = { test() };

Additional Notes

No response

Log File

No response

mikuhl-dev avatar Aug 21 '24 00:08 mikuhl-dev