LuaLS / LuaLS/lua-language-server
Table preview with Enums
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
```lua
Enum = {
One = 1,
Two = 2,
Three = 3
}
local s_TableEnum = {
[Enum.One] = "One",
[Enum.Two] = "Two",
[Enum.Three] = "Three"
}
local s_Table = {
[1] = "One",
[2] = "Two",
[3] = "Three"
}
```
What I get:

What I expect:

Contributor guide
Research direction
Start by reproducing the Lua example and compare the preview for s_TableEnum with s_Table. Trace the table-preview handling for enum-valued keys; done means enum-keyed entries display the same labels and values as the equivalent numeric-keyed table.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100