Describe the bug
deno fmt can lose comments without any indication.
Minimal reproducible examples (via deno fmt): here
Additional details: denoland/std#3502 (comment)
Another way to reproduce:
dprint fmt --config <(echo '{"plugins": ["https://plugins.dprint.dev/json-0.17.4.wasm"]}')
dprint version: 0.41.0
dprint-plugin-json version: 0.17.4
Input Code
Expected Output
One of two options:
- A canonical rearrangement of the comments' contents.
- Failure if comments would otherwise be lost! (To signal to the user that the comments should be rearranged in order to avoid comment loss.)
Actual Output
Describe the bug
deno fmtcan lose comments without any indication.Minimal reproducible examples (via
deno fmt): hereAdditional details: denoland/std#3502 (comment)
Another way to reproduce:
dprint fmt --config <(echo '{"plugins": ["https://plugins.dprint.dev/json-0.17.4.wasm"]}')dprint version: 0.41.0
dprint-plugin-json version: 0.17.4
Input Code
Expected Output
One of two options:
Actual Output