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

required function argument handling #134

Open
schmurfy opened this issue Feb 13, 2024 · 0 comments
Open

required function argument handling #134

schmurfy opened this issue Feb 13, 2024 · 0 comments

Comments

@schmurfy
Copy link

I have a helper.libsonnet file containing this:

function(a, b)
{ sum: a+b }

I get a "Missing argument error" which is correct but quite useless, how can I give the language server a useable default without having to resort to writing that:

function(a = 0, b = 0)
{ sum: a+b }

it works but I don't want these arguments to be optional, is there a way to do that in a way on visible to the language server maybe ?

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