mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
Fix(29118): tsconfig.extends as array (#50403)
* tsconfig.extends as array * Updated baselines * Changes for pr * Changes for pr comments * Fixed formatting and edited a test * Resolved errors after a merge conflict * Added "string | list" type implentation * Removed string | list type implementation * Fixed formatting * Added compiler test * Resolving programUpdate errors * Fixing commandLineParser error
This commit is contained in:
@@ -253,9 +253,9 @@ function generateOptionOutput(sys: System, option: CommandLineOption, rightAlign
|
||||
typeof option.defaultValueDescription === "object"
|
||||
? getDiagnosticText(option.defaultValueDescription)
|
||||
: formatDefaultValue(
|
||||
option.defaultValueDescription,
|
||||
option.type === "list" ? option.element.type : option.type
|
||||
);
|
||||
option.defaultValueDescription,
|
||||
option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type
|
||||
);
|
||||
const terminalWidth = sys.getWidthOfTerminal?.() ?? 0;
|
||||
|
||||
// Note: child_process might return `terminalWidth` as undefined.
|
||||
@@ -365,6 +365,7 @@ function generateOptionOutput(sys: System, option: CommandLineOption, rightAlign
|
||||
};
|
||||
|
||||
function getValueType(option: CommandLineOption) {
|
||||
Debug.assert(option.type !== "listOrElement");
|
||||
switch (option.type) {
|
||||
case "string":
|
||||
case "number":
|
||||
@@ -386,7 +387,7 @@ function generateOptionOutput(sys: System, option: CommandLineOption, rightAlign
|
||||
possibleValues = option.type;
|
||||
break;
|
||||
case "list":
|
||||
// TODO: check infinite loop
|
||||
case "listOrElement":
|
||||
possibleValues = getPossibleValues(option.element);
|
||||
break;
|
||||
case "object":
|
||||
|
||||
Reference in New Issue
Block a user