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

new settings editor should not automatically remove a setting from the json when it is set to any value explicitly #58901

Closed
geekley opened this issue Sep 18, 2018 · 2 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@geekley
Copy link

geekley commented Sep 18, 2018

(not sure if this is a feature request or a bug, since it was intentional)

Default settings may change.
When users explicitly set a setting to a value, they expect to have a guarantee that the setting they chose explicitly will not change in the future, even if the default happens to change.

However, when you use the new settings editor to change a setting back to a value that happens to be the default, it removes the setting from the json.
This is not only wrong, but also unnecessary, since the settings editor already has a simple way to track modified settings and reset a setting to its default value:
reset-setting

I strongly think the current behavior is incorrect, because these two things are completely different when we think about user intention:

  • explicitly wanting a value that happens to be the default
  • accepting whatever the default is for that setting

An example of why I think this sort of thing is important:
https://money.cnn.com/2018/06/07/technology/facebook-public-post-error/index.html
It may be an extreme example, but you get the point.

This incorrect behavior is the sole reason I was still using the json to edit my settings, and it became more of a concern now that the new editor is the default.

The correct behavior should be:

  • When setting the value explicilty, mark the setting as modified/overriden and keep the setting in the json, even if it happens to be equal to the default. The user wants the guarantee that the setting will have THAT value, and a way to remember that such value was explicitly chosen by them.
  • When choosing "Reset Setting", remove the setting from the json, because the user wants to accept whatever the default is, even if it changes later. Mark the setting as not modified/overriden.

If possible, change the text and semantics of "modified" settings to "overriden" settings.

@vscodebot
Copy link

vscodebot bot commented Sep 18, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@roblourens
Copy link
Member

roblourens commented Sep 19, 2018

Duplicate of #58038 I will respond some more there

@roblourens roblourens marked this as a duplicate of #58038 Sep 19, 2018
@roblourens roblourens added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 19, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants