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

Error while saving or loading profile #3

Closed
mcollier opened this issue Jul 1, 2019 · 4 comments
Closed

Error while saving or loading profile #3

mcollier opened this issue Jul 1, 2019 · 4 comments
Assignees

Comments

@mcollier
Copy link

mcollier commented Jul 1, 2019

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

vscode profile switcher error bubble

@aaronpowell
Copy link
Owner

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

@mcollier
Copy link
Author

mcollier commented Jul 2, 2019

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

@aaronpowell aaronpowell self-assigned this Jul 2, 2019
@aaronpowell
Copy link
Owner

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
Copy link
Author

mcollier commented Jul 3, 2019

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

# 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