Skip to content

Commit 9d345e7

Browse files
author
Orta Therox
authored
Rename TSConfig option categories (#42514)
* Update the category descriptions for the tsconfig options * Gets tests green * Whitespace change * Drop command line options from --init * Go back to the old re-build baseline * Fix numbers * Remove formatting options from --showconfig * Dpon't show output formatting changes in showConfig * Update baselines * Update baselines
1 parent d8e9f69 commit 9d345e7

File tree

19 files changed

+1511
-1087
lines changed

19 files changed

+1511
-1087
lines changed

src/compiler/commandLineParser.ts

+131-124
Large diffs are not rendered by default.

src/compiler/diagnosticMessages.json

+58-28
Original file line numberDiff line numberDiff line change
@@ -4593,34 +4593,6 @@
45934593
"category": "Message",
45944594
"code": 6171
45954595
},
4596-
"Basic Options": {
4597-
"category": "Message",
4598-
"code": 6172
4599-
},
4600-
"Strict Type-Checking Options": {
4601-
"category": "Message",
4602-
"code": 6173
4603-
},
4604-
"Module Resolution Options": {
4605-
"category": "Message",
4606-
"code": 6174
4607-
},
4608-
"Source Map Options": {
4609-
"category": "Message",
4610-
"code": 6175
4611-
},
4612-
"Additional Checks": {
4613-
"category": "Message",
4614-
"code": 6176
4615-
},
4616-
"Experimental Options": {
4617-
"category": "Message",
4618-
"code": 6177
4619-
},
4620-
"Advanced Options": {
4621-
"category": "Message",
4622-
"code": 6178
4623-
},
46244596
"Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'.": {
46254597
"category": "Message",
46264598
"code": 6179
@@ -4882,6 +4854,64 @@
48824854
"code": 6243
48834855
},
48844856

4857+
"Modules": {
4858+
"category": "Message",
4859+
"code": 6244
4860+
},
4861+
"File Management": {
4862+
"category": "Message",
4863+
"code": 6245
4864+
},
4865+
"Emit": {
4866+
"category": "Message",
4867+
"code": 6246
4868+
},
4869+
"JavaScript Support": {
4870+
"category": "Message",
4871+
"code": 6247
4872+
},
4873+
"Type Checking": {
4874+
"category": "Message",
4875+
"code": 6248
4876+
},
4877+
"Editor Support": {
4878+
"category": "Message",
4879+
"code": 6249
4880+
},
4881+
"Watch and Build Modes": {
4882+
"category": "Message",
4883+
"code": 6250
4884+
},
4885+
"Compiler Diagnostics": {
4886+
"category": "Message",
4887+
"code": 6251
4888+
},
4889+
"Interop Constraints": {
4890+
"category": "Message",
4891+
"code": 6252
4892+
},
4893+
"Backwards Compatibility": {
4894+
"category": "Message",
4895+
"code": 6253
4896+
},
4897+
"Language and Environment": {
4898+
"category": "Message",
4899+
"code": 6254
4900+
},
4901+
"Projects": {
4902+
"category": "Message",
4903+
"code": 6255
4904+
},
4905+
"Output Formatting": {
4906+
"category": "Message",
4907+
"code": 6256
4908+
},
4909+
"Completeness": {
4910+
"category": "Message",
4911+
"code": 6257
4912+
},
4913+
4914+
48854915
"Projects to reference": {
48864916
"category": "Message",
48874917
"code": 6300

src/testRunner/unittests/config/commandLineParsing.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ namespace ts {
532532
name: "optionName",
533533
type: type(),
534534
isTSConfigOnly: true,
535-
category: Diagnostics.Basic_Options,
535+
category: Diagnostics.Backwards_Compatibility,
536536
description: Diagnostics.Enable_project_compilation,
537537
}
538538
];
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"compilerOptions": {
3-
"locale": "someString"
4-
}
2+
"compilerOptions": {}
53
}

tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json

+87-61
Large diffs are not rendered by default.

tests/baselines/reference/tsConfig/Initialized TSConfig with advanced options/tsconfig.json

+90-63
Large diffs are not rendered by default.

tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json

+87-61
Large diffs are not rendered by default.

tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json

+87-61
Large diffs are not rendered by default.

tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json

+87-61
Large diffs are not rendered by default.

tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json

+87-61
Large diffs are not rendered by default.

tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json

+87-61
Large diffs are not rendered by default.

tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json

+87-61
Large diffs are not rendered by default.

tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json

+87-61
Large diffs are not rendered by default.

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/declarationDir-is-specified.js

+89-64
Large diffs are not rendered by default.

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-and-declarationDir-is-specified.js

+89-64
Large diffs are not rendered by default.

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/when-outDir-is-specified.js

+89-63
Large diffs are not rendered by default.

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/with-outFile.js

+89-63
Large diffs are not rendered by default.

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js

+89-63
Large diffs are not rendered by default.

tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified.js

+89-63
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)