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

Inconsistency in list/tree settings #67387

Closed
sandy081 opened this issue Jan 29, 2019 · 7 comments
Closed

Inconsistency in list/tree settings #67387

sandy081 opened this issue Jan 29, 2019 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug list-widget List widget issues tree-widget Tree widget issues verified Verification succeeded
Milestone

Comments

@sandy081
Copy link
Member

Testing #67274

There are couple of list/tree settings those get applied for tree only or lists only or for both.

  • workbench.tree.horizontalScrolling - Both lists and trees
  • workbench.list.keyboardNavigation - Only for trees (if I am not wrong)

It is confusing what gets applied to tree and lists. We should either have consistent prefixes for both or have specific settings for each but not mixed.

@joaomoreno joaomoreno added this to the February 2019 milestone Jan 29, 2019
@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug tree-widget Tree widget issues list-widget List widget issues labels Jan 29, 2019
@joaomoreno
Copy link
Member

The problem is that workbench.tree.horizontalScrolling already existed. At best we can deprecate it in favor of workbench.list.horizontalScrolling. But that can only happen next month.

@joaomoreno
Copy link
Member

@sandy081 Since it's the second time this week I've migrated an issue, I've created a util to getMigratedSettingValue:

3e70d8c#diff-800a35d2b141a47ddf9bb3008ce1fb4e

I couldn't get it simpler than that. Please review and let me know if it's incorrect.

@sandy081
Copy link
Member Author

Looks good.

@sandy081 sandy081 added the verified Verification succeeded label Feb 26, 2019
@sandy081
Copy link
Member Author

sandy081 commented Feb 26, 2019

@joaomoreno Following are the issue I observed moving from old to new setting and if users have old setting enabled

  • UI shows horizontal scrolling disabled, but the trees show horizontal scrolling

image

  • Enabling horizontal scrolling triggers restart even though it is already enabled.

  • May be not so important, but the settings file now shows Unknown Configuration Setting for the old setting. May be a deprecation message might be useful?

Let me know if you would like to track these as a separate issue or in this one?

@joaomoreno
Copy link
Member

joaomoreno commented Feb 26, 2019

@sandy081 Are configuration contributions allowed to do that?

@sandy081
Copy link
Member Author

Yeah you can add a deprecation message like follows

'problems.autoReveal': {
			'description': Messages.PROBLEMS_PANEL_CONFIGURATION_AUTO_REVEAL,
			'type': 'boolean',
			'default': true,
			'deprecationMessage': 'this is deprecated'
		}

This will not suggest the setting in the intellisense and also show a deprecation warning when used.

@joaomoreno
Copy link
Member

@sandy081 c4bb878

joaomoreno added a commit that referenced this issue Feb 26, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug list-widget List widget issues tree-widget Tree widget issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants