LuaLS / LuaLS/lua-language-server
[Feature request] Case-insensitive string enums/aliases
未关闭
还没有人认领这个 Issue。
- 主要语言
- Lua
- 星标
- 4.4k
- 派生
- 442
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
该 issue 未指定文件、测试或实现入口。首先定位 Lua language server 中的 enum 处理和自动补全生成,然后确定在不列出每种拼写的情况下,应如何表示不区分大小写的 enum。Done 应包含所请求的行为,并保留干净的自动补全结果。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- lua
- 领域
- devtools
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100