"|lambda|" isn't listed in "Lua.runtime.nonstandardSymbol"
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 215
- 派生
- 62
- PR 合并指标
- 30 天内没有已合并 PR
描述
Which OS are you using?
Windows
Expected Behaviour
https://github.com/LuaLS/lua-language-server/pull/2720 added support for lamda style functions with "|lambda|" as an option for non standard symbols. This change was released in 3.10.0, but it can't be used in VSCode because "|lambda|" is not yet listed as an options. It need to be added to the package.json.
Actual Behaviour
Setting "Lua.runtime.nonstandardSymbol": ["|lambda|"] in settings.json should add support for lamda style functions, such as: Wait.frames(|| print("Hello World"), 60). Instead you get a warning:
Value is not accepted. Valid values: "//", "/**/", "`", "+=", "-=", "*=", "/=", "%=", "^=", "//=", "|=", "&=", "<<=", ">>=", "||", "&&", "!", "!=", "continue".
Reproduction steps
- Open your
settings.jsonin VSCode - Add `"Lua.runtime.nonstandardSymbol": ["|lambda|"]
- You get a warning
Additional Notes
No response
Log
No response
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开 package.json 中第 2911 行引用的 runtime.nonstandardSymbol 设置附近部分。将列出的可接受值与 Lua language server 支持的 |lambda| 选项进行比较,然后更新设置元数据,使 VSCode 接受该选项。重新生成 settings.json 示例,以确认警告已消失。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- lua, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100