Merge branch 'watchImprovements' into builder

This commit is contained in:
Sheetal Nandi
2017-08-18 13:38:24 -07:00
3718 changed files with 8695 additions and 7878 deletions

View File

@@ -1116,7 +1116,7 @@ namespace ts {
if (option && !isString(option.type)) {
const customOption = <CommandLineOptionOfCustomType>option;
// Validate custom option type
if (!customOption.type.has(text)) {
if (!customOption.type.has(text.toLowerCase())) {
errors.push(
createDiagnosticForInvalidCustomType(
customOption,
@@ -1822,7 +1822,7 @@ namespace ts {
return value;
}
else if (!isString(option.type)) {
return option.type.get(value);
return option.type.get(isString(value) ? value.toLowerCase() : value);
}
return normalizeNonListOptionValue(option, basePath, value);
}