Comments at the end of objects have their preceding newlines removed; this is awkward in config files where I'm commenting out a setting at the bottom of an object temporarily, as it removes the formatting I had there for spacing.
dprint-plugin-json version: 0.19.2
Input Code
{
// This is a setting.
"foo": "",
// These settings are temporarily commented out.
// "baz": "",
// "qux": ""
}
Expected Output
{
// This is a setting.
"foo": ""
// These settings are temporarily commented out.
// "baz": "",
// "qux": ""
}
Actual Output
{
// This is a setting.
"foo": ""
// These settings are temporarily commented out.
// "baz": "",
// "qux": ""
}
Describe the bug
Comments at the end of objects have their preceding newlines removed; this is awkward in config files where I'm commenting out a setting at the bottom of an object temporarily, as it removes the formatting I had there for spacing.
dprint-plugin-json version: 0.19.2
Input Code
Expected Output
Actual Output