-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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 work for some compound setting types #55794
Comments
null | something
setting types
// Specifies the icon theme used in the workbench or 'null' to not show any file icons.
// - null: No file icons
// - vs-minimal
// - vs-seti
"workbench.iconTheme": "vs-seti",
// List of tags, comma separated, where the content shouldn't be reformatted. 'null' defaults to the 'pre' tag.
"html.format.contentUnformatted": "pre,code,textarea",
// List of tags, comma separated, that should have an extra newline before them. 'null' defaults to "head, body, /html".
"html.format.extraLiners": "head, body, /html",
// Maximum number of line breaks to be preserved in one chunk. Use 'null' for unlimited.
"html.format.maxPreserveNewLines": null,
// List of tags, comma separated, that shouldn't be reformatted. 'null' defaults to all tags listed at https://www.w3.org/TR/html5/dom.html#phrasing-content.
"html.format.unformatted": "wbr",
// Sets the locale used to report JavaScript and TypeScript errors. Requires using TypeScript 2.6.0 or newer in the workspace. Default of `null` uses VS Code's locale.
"typescript.locale": null, These are the settings explicitly But |
|
@JacksonKearl @roblourens can you add some steps for how to verify? |
Here are some settings with compound types
Test that they work as you'd expect. I can't remember which extension has the nullable enum but you can test it with a contribution like
|
@roblourens seems to work for the first one, but not second. e.g. here I cannot type "null": I can only type numbers (I am on Windows). |
For the null|number type, an empty input box will correspond to |
string | null
: Check whether it's ok to map""
tonull
enum | null
: Add 'null' or "None" item to enumnumber | null
:""
=>null
boolean | null
: ?? I don't see this in vscode's core settingsAlso,
enum | boolean
. Example:The text was updated successfully, but these errors were encountered: