LuaLS / LuaLS/lua-language-server
[Feature request] Case-insensitive string enums/aliases
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
The World of Warcraft Lua API features an enum for frame positioning that is like:
"LEFT" | "RIGHT" | "TOP" | ...etc
The problem is: it's not case sensitive. Some prefer writing "left" or "Left" instead of "LEFT". Technically even "lEfT" would be accepted.
The problem if we just add all styles of writing the enum it will look bad in autocomplete etc.
So the request is to add a way to say that upper vs. lowercase doesn't matter for an enum.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files, tests, or an implementation entry point. Start by locating enum handling and autocomplete generation in the Lua language server, then determine how a case-insensitive enum should be represented without listing every spelling. Done should include the requested behavior and preserve clean autocomplete results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100