@@ -1074,7 +1074,7 @@ namespace ts {
10741074 const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule ( options , supportedExtensions ) ;
10751075
10761076 let _typeScriptVersion : Version | undefined ;
1077- let _ignoreDeprecations = new Map < DeprecationPhase , Version > ( ) ;
1077+ const _ignoreDeprecations = new Map < DeprecationPhase , Version > ( ) ;
10781078
10791079 // Map storing if there is emit blocking diagnostics for given input
10801080 const hasEmitBlockingDiagnostics = new Map < string , boolean > ( ) ;
@@ -3746,11 +3746,11 @@ namespace ts {
37463746 function createDeprecatedDiagnosticForOption ( name : string , value ?: string ) {
37473747 const version = getTypeScriptVersion ( ) ;
37483748 if ( version . compareTo ( getIgnoreDeprecationsVersion ( DeprecationPhase . Phase3 ) ) === Comparison . EqualTo ) {
3749- createDiagnosticForOption ( /*onKey*/ ! value , name , undefined , Diagnostics . Flag_0_is_deprecated_please_remove_it_from_your_configuration , value || name ) ;
3749+ createDiagnosticForOption ( /*onKey*/ ! value , name , /*option2*/ undefined , Diagnostics . Flag_0_is_deprecated_please_remove_it_from_your_configuration , value || name ) ;
37503750 }
37513751 else {
37523752 const nextPhase = version . compareTo ( getIgnoreDeprecationsVersion ( DeprecationPhase . Phase2 ) ) === Comparison . EqualTo ? DeprecationPhase . Phase3 : DeprecationPhase . Phase2 ;
3753- createDiagnosticForOption ( /*onKey*/ ! value , name , undefined ,
3753+ createDiagnosticForOption ( /*onKey*/ ! value , name , /*option2*/ undefined ,
37543754 Diagnostics . Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_ignoreDeprecations_Colon_2_to_silence_this_error , value || name , DeprecationPhaseToVersionMap [ nextPhase ] , typeScriptVersion ) ;
37553755 }
37563756 }
0 commit comments