Skip to content

key map value of enum #2914

Open
Open
@renshengongji

Description

@renshengongji

Issue Description

I want to try creating an Event enum to use for the registering Event method, but enum doesn't seem to support key table values
image
image
If it can be completed normally like this
but
image
If you define a variable or parameter as an enumeration, lls will not know what value it has
What I want is to use extend like class, like --- @ class Event: {functionName: string,...}
but enum does not seem to support extend

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions