-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Support reading a object type setting with simple value types #234517
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- When I edit the setting in settings.json, accept the default value '*', and go back to the Settings editor, I get an error message saying "Setting has an invalid type".
- Using a link instead of a button for "Edit in settings.json" LGTM because clicking on it changes the view. Could you add some padding between the table and the link so that the link doesn't look like it's one of the table entries? Also, NVDA states the element is a button instead of a link, even though it looks like a link. Could the element type be changed to a link?
Thanks for the feedback.
Good catch. It is currently a limitation because of the policy setting. Please check this note here:
I took the same link element from complex setting renderer here: vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.ts Lines 1143 to 1145 in 8c67f12
Do you want to change both then? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take another look at the complex link/button during debt week or housekeeping.
LGTM!
With #84756, I have added a new setting
extensions.allowed
that will have a list of extensions that will be allowed. The value of this setting is of type object and the value of each key istrue | false | "stable" | array of string versions
. At present user can view the value of this setting only from settings.json file. If it is made a policy setting then the setting editor does not support showing the value of this setting.Hence, I added support for showing the value of such setting type where the value is an object with simple value types. User can now view the value from the settings editor and to update we show the link to edit in settings.json file as below