@@ -387,7 +387,7 @@ namespace ts {
387
387
name : "inlineSources" ,
388
388
type : "boolean" ,
389
389
category : Diagnostics . SourceMap_Options ,
390
- description :Diagnostics . Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set
390
+ description : Diagnostics . Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set
391
391
} ,
392
392
393
393
// JSX
@@ -477,7 +477,7 @@ namespace ts {
477
477
name : "emitBOM" ,
478
478
type : "boolean" ,
479
479
category : Diagnostics . Advanced_Options ,
480
- description :Diagnostics . Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files
480
+ description : Diagnostics . Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files
481
481
} ,
482
482
{
483
483
name : "locale" ,
@@ -511,7 +511,7 @@ namespace ts {
511
511
name : "noResolve" ,
512
512
type : "boolean" ,
513
513
category : Diagnostics . Advanced_Options ,
514
- description :Diagnostics . Do_not_add_triple_slash_references_or_module_import_targets_to_the_list_of_compiled_files
514
+ description : Diagnostics . Do_not_add_triple_slash_references_or_module_import_targets_to_the_list_of_compiled_files
515
515
} ,
516
516
{
517
517
name : "stripInternal" ,
@@ -979,8 +979,8 @@ namespace ts {
979
979
result += `${ newLine } ` ;
980
980
for ( const option of categorizedOptions [ category ] ) {
981
981
result += `${ tab } ${ tab } // ${ option . description && getLocaleSpecificMessage ( option . description ) || option . name } ${ newLine } ` ;
982
- if ( option . name in configurations . compilerOptions ) {
983
- result += `${ tab } ${ tab } "${ option . name } ": ${ JSON . stringify ( configurations . compilerOptions [ option . name ] ) } ${ ++ seenKnownKeys === knownKesyCount ? "" : "," } ${ newLine } ` ;
982
+ if ( configurations . compilerOptions [ option . name ] ) {
983
+ result += `${ tab } ${ tab } "${ option . name } ": ${ JSON . stringify ( configurations . compilerOptions [ option . name ] ) } ${ ( seenKnownKeys += 1 ) === knownKesyCount ? "" : "," } ${ newLine } ` ;
984
984
}
985
985
else {
986
986
result += `${ tab } ${ tab } // "${ option . name } ": ${ JSON . stringify ( getDefaultValueForOption ( option ) ) } ,${ newLine } ` ;
@@ -1606,4 +1606,4 @@ namespace ts {
1606
1606
function caseInsensitiveKeyMapper ( key : string ) {
1607
1607
return key . toLowerCase ( ) ;
1608
1608
}
1609
- }
1609
+ }
0 commit comments