Skip to content

Enhance @alias to allow numeric enums with comments #1230

@Rouneq

Description

@Rouneq

Given an alias

---@alias lootType integer
---| 1 # Leader
---| 2 # Leader & GroupLeader
---| 3 # Leader & Specified

it currently reports only the values. I'm currently working around this by using integer in the definition. The term 'integer' "pollutes" the documentation. The comments aren't displayed at all.

lootType

Without the use of integer, the annotation gives a warning.

aliasWarning

In conjunction with an issue I just opened (#1229), an enhancement to accept numeric values and include comments with the annotations presented can address this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions