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's such a great tool to handle JSON (with comments). Thanks!
But I find that it can not pass the following test:
test('remove property',()=>{letcontent='{\n "x": "y",\n // This is a comment\n "test": "1"\n}';letedits=removeProperty(content,['x'],formatterOptions);assertEdit(content,edits,'{\n // This is a comment\n "test": "1"\n}');});
I've added a comment right after the property x. What I want is to remove the property but keep the comment. But jsonc-parser removes the comment too, which I think this maybe a bug or something?
P.S. You can test this in edit.test.ts.
The text was updated successfully, but these errors were encountered:
It's such a great tool to handle JSON (with comments). Thanks!
But I find that it can not pass the following test:
I've added a comment right after the property
x
. What I want is to remove the property but keep the comment. Butjsonc-parser
removes the comment too, which I think this maybe a bug or something?P.S. You can test this in
edit.test.ts
.The text was updated successfully, but these errors were encountered: