aaronpowell / vscode-profile-switcher

A VS Code extension for switching settings easily
https://marketplace.visualstudio.com/items?itemName=aaronpowell.vscode-profile-switcher&wt.mc_id=profileswitcher-github-aapowell
MIT License
177 stars 19 forks source link

Error while saving or loading profile #3

Closed mcollier closed 5 years ago

mcollier commented 5 years ago

When attempting to save or load a profile, I receive an error bubble in VS Code.

vscode profile switcher error bubble

aaronpowell commented 5 years ago

Are you able to provide me your settings.json file?

mcollier commented 5 years ago

@aaronpowell Yes. I've attached the settings file here (in the .zip). settings.zip

aaronpowell commented 5 years ago

Ah, it's what I was expecting, there's a comment (which is on line 1) of the settings.json file. VS Code supports comments in that file, even though they aren't part of the JSON spec.

Currently I read settings.json as JSON, which explodes with the comment.

I'll put it on the backlog to fix (I'll find a npm package for it). In the mean time, if you remove your comment it should work.

mcollier commented 5 years ago

Yes, that seems to be the trick. It works with the comment removed.