Don't use | null for ts config

Fixes #129794

Just fall back to undefined instead
This commit is contained in:
Matt Bierner 2021-08-02 16:11:09 -07:00
parent 30b8ca03bc
commit 67ea45c3e0
No known key found for this signature in database
GPG key ID: 099C331567E11888
2 changed files with 5 additions and 18 deletions

View file

@ -139,11 +139,7 @@
"order": 20,
"properties": {
"typescript.tsdk": {
"type": [
"string",
"null"
],
"default": null,
"type": "string",
"markdownDescription": "%typescript.tsdk.desc%",
"scope": "window"
},
@ -163,11 +159,7 @@
"scope": "window"
},
"typescript.npm": {
"type": [
"string",
"null"
],
"default": null,
"type": "string",
"markdownDescription": "%typescript.npm%",
"scope": "machine"
},
@ -751,10 +743,7 @@
"scope": "resource"
},
"typescript.locale": {
"type": [
"string",
"null"
],
"type": "string",
"enum": [
"de",
"es",
@ -765,10 +754,8 @@
"ko",
"ru",
"zh-CN",
"zh-TW",
null
"zh-TW"
],
"default": null,
"markdownDescription": "%typescript.locale%",
"scope": "window"
},

View file

@ -65,7 +65,7 @@
"configuration.tsserver.useSeparateSyntaxServer": "Enable/disable spawning a separate TypeScript server that can more quickly respond to syntax related operations, such as calculating folding or computing document symbols. Requires using TypeScript 3.4.0 or newer in the workspace.",
"configuration.tsserver.maxTsServerMemory": "The maximum amount of memory (in MB) to allocate to the TypeScript server process.",
"configuration.tsserver.experimental.enableProjectDiagnostics": "(Experimental) Enables project wide error reporting.",
"typescript.locale": "Sets the locale used to report JavaScript and TypeScript errors. Default of `null` uses VS Code's locale.",
"typescript.locale": "Sets the locale used to report JavaScript and TypeScript errors. Defaults to use VS Code's locale.",
"configuration.implicitProjectConfig.checkJs": "Enable/disable semantic checking of JavaScript files. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",
"configuration.javascript.checkJs.checkJs.deprecation": "This setting has been deprecated in favor of `js/ts.implicitProjectConfig.checkJs`.",
"configuration.implicitProjectConfig.experimentalDecorators": "Enable/disable `experimentalDecorators` in JavaScript files that are not part of a project. Existing `jsconfig.json` or `tsconfig.json` files override this setting.",