You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that a non-empty array is always rendered in block style in my case. The workaround doesn't work when the array is rendered like a: [1,2,3], and I don't know when it happens.
The text was updated successfully, but these errors were encountered:
For a array field, we have a
key
node and avalue
node, for cases below, the comments set forslice
node goes to thenum
node:When the array is rendered inline (sure for an empty array), we set the
key.LineComment
, it is rendered at the wrong place:When the array is rendered in block style, we set the
value.LineComment
, it is rendered at the wrong place:A workaround for this issue is (similar like what happens in
yaml.Unmarshal()
):It seems that a non-empty array is always rendered in block style in my case. The workaround doesn't work when the array is rendered like
a: [1,2,3]
, and I don't know when it happens.The text was updated successfully, but these errors were encountered: