Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration.update doesn't do anything on malformed json #19006

Closed
WebFreak001 opened this issue Jan 22, 2017 · 3 comments
Closed

configuration.update doesn't do anything on malformed json #19006

WebFreak001 opened this issue Jan 22, 2017 · 3 comments
Assignees
Labels
api config VS Code configuration, set up issues
Milestone

Comments

@WebFreak001
Copy link

Example user settings:

{
  "editor.renderWhitespace": "all",
}

It does get treated by vscode correctly (correctly parsed and used). However when calling

getConfiguration("test").update("foo", "bar", true);

now it won't do anything unless I remove that comma at the end of the line.

People who never edited the settings manually complained about my extension not correctly working because the config doesn't update.

@ramya-rao-a
Copy link
Contributor

@sandy081 Would this be due to #16780?

@sandy081
Copy link
Member

@ramya-rao-a Yes partially. This was fixed for internal usage but not in API. Will need to adopt and fix it.

@sandy081 sandy081 self-assigned this Jan 23, 2017
@sandy081 sandy081 added api config VS Code configuration, set up issues workbench labels Jan 23, 2017
@sandy081 sandy081 added this to the Backlog milestone Jan 23, 2017
@sandy081
Copy link
Member

sandy081 commented Apr 7, 2017

This got fixed with #19625

@sandy081 sandy081 closed this as completed Apr 7, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api config VS Code configuration, set up issues
Projects
None yet
Development

No branches or pull requests

3 participants