Skip to content

Conversation

@zhiyuanliang-ms
Copy link
Member

@zhiyuanliang-ms zhiyuanliang-ms commented Jul 31, 2025

Why this PR?

671

The reason why we use stripComments instead of parse from jsonc-parser is that jsonc-parser.parse is too tolerant for syntax error, it will always return a result which will bring behavior change.

@rossgrambo
Copy link
Member

I see the tests aren't the same as the dotnet parser. Are there any differences in functionality between this one and dotnet's comment parsing? They appear similiar.

@zhiyuanliang-ms
Copy link
Member Author

zhiyuanliang-ms commented Aug 1, 2025

@rossgrambo The testcase is generated by copilot. I will make the testcases consistent.

@zhiyuanliang-ms zhiyuanliang-ms merged commit c6acf18 into main Aug 7, 2025
6 checks passed
@zhiyuanliang-ms zhiyuanliang-ms deleted the zhiyuanliang/support-jsonc branch August 7, 2025 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants