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

Workspace setting default value in new Setting Editor is ambiguous #50827

Closed
rebornix opened this issue May 30, 2018 · 8 comments
Closed

Workspace setting default value in new Setting Editor is ambiguous #50827

rebornix opened this issue May 30, 2018 · 8 comments
Assignees
Labels
settings-editor VS Code settings editor issues under-discussion Issue is under discussion for relevance, priority, approach

Comments

@rebornix
Copy link
Member

  • VSCode Version: Insider
  • OS Version: macOS

Steps to Reproduce:

  1. Working on a multi root workspace
  2. Have files.autoSave set to afterDelay in User Setting
  3. Open workspace setting
  4. Search for autoSave.

image

When I looked at this setting, I thought auto save is turned off but since the auto saving still happened on my machine, I was confused what's going on there. Later on I realized that even though it's say off in above image, it's not actually effective.

With the json editor, I don't have such confusion as if nothing exists in the workspace settings file, I know for sure nothing is overriding my User Setting. Here in this case with the new Setting Editor, I don't know if it's the default value or an explicit setting.

@vscodebot vscodebot bot added the insiders label May 30, 2018
@roblourens roblourens added under-discussion Issue is under discussion for relevance, priority, approach settings-editor VS Code settings editor issues and removed insiders labels May 30, 2018
@roblourens
Copy link
Member

At one point I considered graying out unmodified values. What do you think about that?

@rebornix
Copy link
Member Author

I'm not sure about if grayed out value would lead to unexpected meaning (disabled).

For User Setting there is a default value, while for Workspace Setting there is no such default value concept. Probably something indicating that the value is not set?

@geekley
Copy link

geekley commented Sep 18, 2018

May be related to #58901 .

I would suggest changing "(Modified in: User)" above to "(Overriden in: User)" below the value, followed by the actual value the setting will have (read-only).
I would also expect that clicking the "(Overriden in: User)" link would navigate to the corresponding setting in User Settings tab.

@roblourens
Copy link
Member

"Overridden in User" sounds like "this scope is overridden in User" which is not true. Going the other direction it might be true ("Overridden in Workspace" seen from the User scope, it may be true that the User value is overridden by the Workspace).

Also there is no one "actual value" since you can have a setting configured in multiple folders in a workspace. Basically I want to give the user a gentle hint that the setting is configured other places, and leave it up to them to figure out what the effective value will be in what situation, because it's too hard to explain all of this in a simple UI.

@geekley
Copy link

geekley commented Sep 20, 2018

Maybe it would be less confusing if each workspace setting had an "Override in this workspace" checkbox before the setting. The override option would never be faded out, and the setting would be faded out (half opacity) only if the override option is not set. This avoids the confusion with disabled, and makes the action of overriding more explicit.

@andrecasal
Copy link

From a user's point of view, there is no difference between default settings and user settings that are the same. I suggest to always show the default settings as if they where applied. Having a "override" or an "applied" definition is not useful.

Personally, I keep an updated copy of all default settings in my user settings.json file and only change the ones I want, precisely to avoid this ambiguity.

@roblourens roblourens added this to the Backlog milestone Oct 28, 2019
@rzhao271 rzhao271 assigned rzhao271 and unassigned roblourens Oct 15, 2021
@julie777
Copy link

I created a proposal in #136068 that might address this.

@rzhao271
Copy link
Contributor

rzhao271 commented Mar 3, 2022

Merging into #58038

@rzhao271 rzhao271 closed this as completed Mar 3, 2022
@rzhao271 rzhao271 removed this from the Backlog milestone Mar 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
settings-editor VS Code settings editor issues under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

6 participants