You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
LOVE enum types are declared as table in the libraries. For example, love.KeyConstrant in love.keyboard.lua is supposed to be enum like this
---@aliaslove.KeyConstrant'"a"' | '"b"' | '"c"' | (and so on)
Describe the bug
LOVE enum types are declared as table in the libraries. For example,
love.KeyConstrant
inlove.keyboard.lua
is supposed to be enum like this---@alias love.KeyConstrant '"a"' | '"b"' | '"c"' | (and so on)
But instead it's a class.
Expected behavior
LOVE enums are literal string, so it makes sense to use
---@alias EnumName '"enumvalue1"' | '"enumvalue2"' | '"enumvalue3"' | (and so on)
Screenshots
https://github.com/sumneko/lua-language-server/blob/141f5d98b593a4eb2c626e2219ac33d91a524a1d/meta/3rd/love2d/library/love.keyboard.lua#L81-L94
I'm sure it happends on other LOVE enums too.
Environment (please complete the following information):
Provide logs
Not Applicable
The text was updated successfully, but these errors were encountered: