Open rm-code opened 7 years ago
Yup. This is not currently supported by this package. But this would be an interesting feature to have. I'll leave this issue open and maybe look into it at some point.
Thanks 👍
For now I just moved the returnTypes definition outside of the variants as a workaround.
Hi @dapetcu21,
I'm currently rewriting my love-atom package to work with atom-autocomplete-lua and I've run into a small into issue with the return types of function variants.
Below is an example of how my JSON file is formatted:
As you can see the
returnTypes
are inside of the variants table and atom-autocomplete-lua doesn't resolve them correctly.When I write
local foo = love.graphics.newImageData()
,foo
doesn't have any method suggestions.It works fine for functions without variants:
In this case (
local foo = love.graphics.newText()
),foo
is correctly marked as an object of typeText
.As far as I know there are some functions in the LÖVE API whose variants have different
returnTypes
so I can't simply move them outside of the variant definition.Is there something I am missing, or is this not supported by your package?
Best wishes, Robert