mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Don't have to differentiate cmdline and tsconfig.json description
This reverts commitefe57733caand94f9e67a24.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user