grafana/vscode-jsonnet

Odd auto formatting

goodspark opened this issue · 2 comments

If I create a jsonnet file with:

local asd(
  x=1
) = {
  hello: x,
};
asd(x=4)

It gets auto-formatted to:

local asd(
  x=1
      ) = {
  hello: x,
};
asd(x=4)

Which is really weird.

Version: 0.3.1

This is unfortunately an issue with the native jsonnet formatter:

$ echo "local asd(
  x=1
) = {
  hello: x,
};
asd(x=4)" | jsonnetfmt -

local asd(
  x=1
      ) = {
  hello: x,
};
asd(x=4)

An issue here: https://github.com/google/go-jsonnet would be better targeted

Ah, OK. Thanks! I'll file an issue there.