Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Trailing commas in settings.json #8

Closed
zingmane opened this issue Jul 11, 2019 · 2 comments
Closed

Trailing commas in settings.json #8

zingmane opened this issue Jul 11, 2019 · 2 comments

Comments

@zingmane
Copy link

Saving profile runs on error if the config has trailing commas any where in the settings.json.
The error message was also very shortened, so I had to look a while to find the issue.
Unfortunately the JSON specification does not allow a trailing commas, but code has no problem with it, so I think the profile switscher shouldn't either.

This is the snippet that caused the error.

"files.exclude": { "**/.git": true, },

@aaronpowell
Copy link
Owner

Hmm, I use the same parser that Code itself uses to read the JSON in so I'm surprised that this results in an error.

aaronpowell added a commit that referenced this issue Jul 19, 2019
This is the same parser that's used internally by vscode
@aaronpowell
Copy link
Owner

Fixed in release 0.3.1

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants