Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LucasOe opened this issue Aug 17, 2024 · 0 comments
Open

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

LucasOe opened this issue Aug 17, 2024 · 0 comments

Comments

@LucasOe
Copy link

LucasOe commented Aug 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant