Don't have to differentiate cmdline and tsconfig.json description

This reverts commit efe57733ca and 94f9e67a24.
This commit is contained in:
Daniel
2018-01-14 05:55:28 +07:00
parent 17e23fcb7e
commit 8eab5caaba
3 changed files with 2 additions and 9 deletions
+2 -4
View File
@@ -151,8 +151,7 @@ namespace ts {
},
showInSimplifiedHelpView: true,
category: Diagnostics.Basic_Options,
description: Diagnostics.Specify_library_files_to_be_included_in_the_compilation_Colon,
descriptionOnTSConfig: Diagnostics.Specify_library_files_to_be_included_in_the_compilation
description: Diagnostics.Specify_library_files_to_be_included_in_the_compilation_Colon
},
{
name: "allowJs",
@@ -1352,8 +1351,7 @@ namespace ts {
optionName = `// "${option.name}": ${JSON.stringify(getDefaultValueForOption(option))},`;
}
nameColumn.push(optionName);
const optionDescription = option.descriptionOnTSConfig || option.description;
descriptionColumn.push(`/* ${optionDescription && getLocaleSpecificMessage(optionDescription) || option.name} */`);
descriptionColumn.push(`/* ${option.description && getLocaleSpecificMessage(option.description) || option.name} */`);
marginLength = Math.max(optionName.length, marginLength);
}
});
-4
View File
@@ -3451,10 +3451,6 @@
"category": "Error",
"code": 6189
},
"Specify library files to be included in the compilation.": {
"category": "Message",
"code": 6190
},
"Variable '{0}' implicitly has an '{1}' type.": {
"category": "Error",
"code": 7005
-1
View File
@@ -4120,7 +4120,6 @@ namespace ts {
isFilePath?: boolean; // True if option value is a path or fileName
shortName?: string; // A short mnemonic for convenience - for instance, 'h' can be used in place of 'help'
description?: DiagnosticMessage; // The message describing what the command line switch does
descriptionOnTSConfig?: DiagnosticMessage; // The message describing what the option does in tsconfig.json file
paramType?: DiagnosticMessage; // The name to be used for a non-boolean option's parameter
isTSConfigOnly?: boolean; // True if option can only be specified via tsconfig.json file
isCommandLineOnly?: boolean;