grafana/vscode-jsonnet

Is there a way to provide TLAs when evaluating the file?

pddg opened this issue · 2 comments

pddg commented

I want to evaluate the jsonnet file that requires some TLAs like this.

function(name)
  {
    value: std.format("Hello %s", name)、
  }

However, there seems to be no way to provide these information when evaluating the file.
And the evaluation fails due to RUNTIME ERROR: Missing argument: name Top-level function call.

Currently I need to put a dummy file that calls this function to evaluate this. Also, due to this specification, all jsonnet and libsonnet files containing such function declarations are marked with a warning.

Is there some mechanism to provide the TLAs at the time of evaluation?