Open vallode opened 6 months ago
Even more annoyingly, it looks like accessing known class fields by a known integer variable is unsupported in LuaLS:
---@class Foo
---@field [0] "I am a string"
local foo
local bar = 0
local test = foo[bar] -- This _should_ result in test being known, but it is marked as "unknown" instead.
Enum attributes can be access either via the key or the value of the corresponding enum, right now we are only using the value. This results in some annoying behaviour:
The biggest issue is going to be figuring out how to do this without doubling the size of enums (again):
Would change into:
For enums with hundreds of attributes, it is less than ideal.