Skip to content

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

@LucasOe

Description

@LucasOe

Which OS are you using?

Windows

Expected Behaviour

LuaLS/lua-language-server#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions