Skip to content

required function argument handling #134

@schmurfy

Description

@schmurfy

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions