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
The emmet snippets.json is tolerant to comments since #33818. This means that a snippets.json like this would still be parsed correctly and work as expected:
However any comment in snippets.json will still be marked as an error by VSCode. In contrast, any comment in the VSCode settings.json is ignored.
emmet snippets.json
VSCode settings.json
I assume that this behavior can be changed, since the emmet snippets.json is already being parsed in a way that's tolerant to comments. Can these errors be silenced to match the underlying parsing behavior?
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
create an emmet snippet.json file with comments
notice the mismatch: the file is being parsed correctly, but the comment is marked as an error ("Comments are not permitted in JSON. (521)")
VS Code version: Code 1.90.0 (89de5a8, 2024-06-04T19:43:07.605Z)
OS version: Linux x64 6.5.0-35-generic snap
Modes:
The text was updated successfully, but these errors were encountered:
robinmetral
changed the title
Silence the "No comments in JSON" error for the emmet snippets.json
Silence the "Comments are not permitted in JSON." error for the emmet snippets.json
Jun 13, 2024
robinmetral
changed the title
Silence the "Comments are not permitted in JSON." error for the emmet snippets.json
Silence the "Comments are not permitted in JSON." error for the emmet snippets.json to match parsing behavior
Jun 13, 2024
Type: Bug
The emmet snippets.json is tolerant to comments since #33818. This means that a
snippets.json
like this would still be parsed correctly and work as expected:However any comment in
snippets.json
will still be marked as an error by VSCode. In contrast, any comment in the VSCodesettings.json
is ignored.snippets.json
settings.json
I assume that this behavior can be changed, since the emmet
snippets.json
is already being parsed in a way that's tolerant to comments. Can these errors be silenced to match the underlying parsing behavior?Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
VS Code version: Code 1.90.0 (89de5a8, 2024-06-04T19:43:07.605Z)
OS version: Linux x64 6.5.0-35-generic snap
Modes:
The text was updated successfully, but these errors were encountered: