jsonnet-language-server icon indicating copy to clipboard operation
jsonnet-language-server copied to clipboard

required function argument handling

Open schmurfy opened this issue 1 year ago • 0 comments

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 ?

schmurfy avatar Feb 13 '24 14:02 schmurfy