vscode-lua icon indicating copy to clipboard operation
vscode-lua copied to clipboard

"|lambda|" isn't listed in "Lua.runtime.nonstandardSymbol"

Open LucasOe opened this issue 1 year ago • 0 comments

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

  1. Open your settings.json in VSCode
  2. Add `"Lua.runtime.nonstandardSymbol": ["|lambda|"]
  3. You get a warning

Additional Notes

No response

Log

No response

LucasOe avatar Aug 17 '24 11:08 LucasOe