@@ -1617,14 +1617,6 @@ export const buildOpts: CommandLineOption[] = [
16171617
16181618/** @internal */
16191619export const typeAcquisitionDeclarations : CommandLineOption [ ] = [
1620- {
1621- /* @deprecated typingOptions.enableAutoDiscovery
1622- * Use typeAcquisition.enable instead.
1623- */
1624- name : "enableAutoDiscovery" ,
1625- type : "boolean" ,
1626- defaultValueDescription : false ,
1627- } ,
16281620 {
16291621 name : "enable" ,
16301622 type : "boolean" ,
@@ -1695,19 +1687,6 @@ export const defaultInitCompilerOptions: CompilerOptions = {
16951687 skipLibCheck : true
16961688} ;
16971689
1698- /** @internal */
1699- export function convertEnableAutoDiscoveryToEnable ( typeAcquisition : TypeAcquisition ) : TypeAcquisition {
1700- // Convert deprecated typingOptions.enableAutoDiscovery to typeAcquisition.enable
1701- if ( typeAcquisition && typeAcquisition . enableAutoDiscovery !== undefined && typeAcquisition . enable === undefined ) {
1702- return {
1703- enable : typeAcquisition . enableAutoDiscovery ,
1704- include : typeAcquisition . include || [ ] ,
1705- exclude : typeAcquisition . exclude || [ ]
1706- } ;
1707- }
1708- return typeAcquisition ;
1709- }
1710-
17111690/** @internal */
17121691export function createCompilerDiagnosticForInvalidCustomType ( opt : CommandLineOptionOfCustomType ) : Diagnostic {
17131692 return createDiagnosticForInvalidCustomType ( opt , createCompilerDiagnostic ) ;
@@ -2194,12 +2173,6 @@ function getTsconfigRootOptionsMap() {
21942173 elementOptions : getCommandLineWatchOptionsMap ( ) ,
21952174 extraKeyDiagnostics : watchOptionsDidYouMeanDiagnostics ,
21962175 } ,
2197- {
2198- name : "typingOptions" ,
2199- type : "object" ,
2200- elementOptions : getCommandLineTypeAcquisitionMap ( ) ,
2201- extraKeyDiagnostics : typeAcquisitionDidYouMeanDiagnostics ,
2202- } ,
22032176 {
22042177 name : "typeAcquisition" ,
22052178 type : "object" ,
@@ -3282,9 +3255,7 @@ function parseOwnConfigOfJson(
32823255 }
32833256
32843257 const options = convertCompilerOptionsFromJsonWorker ( json . compilerOptions , basePath , errors , configFileName ) ;
3285- // typingOptions has been deprecated and is only supported for backward compatibility purposes.
3286- // It should be removed in future releases - use typeAcquisition instead.
3287- const typeAcquisition = convertTypeAcquisitionFromJsonWorker ( json . typeAcquisition || json . typingOptions , basePath , errors , configFileName ) ;
3258+ const typeAcquisition = convertTypeAcquisitionFromJsonWorker ( json . typeAcquisition , basePath , errors , configFileName ) ;
32883259 const watchOptions = convertWatchOptionsFromJsonWorker ( json . watchOptions , basePath , errors ) ;
32893260 json . compileOnSave = convertCompileOnSaveOptionFromJson ( json , basePath , errors ) ;
32903261 let extendedConfigPath : string | string [ ] | undefined ;
@@ -3322,7 +3293,7 @@ function parseOwnConfigOfJsonSourceFile(
33223293 errors : Push < Diagnostic >
33233294) : ParsedTsconfig {
33243295 const options = getDefaultCompilerOptions ( configFileName ) ;
3325- let typeAcquisition : TypeAcquisition | undefined , typingOptionstypeAcquisition : TypeAcquisition | undefined ;
3296+ let typeAcquisition : TypeAcquisition | undefined ;
33263297 let watchOptions : WatchOptions | undefined ;
33273298 let extendedConfigPath : string | string [ ] | undefined ;
33283299 let rootCompilerOptions : PropertyName [ ] | undefined ;
@@ -3340,9 +3311,6 @@ function parseOwnConfigOfJsonSourceFile(
33403311 case "typeAcquisition" :
33413312 currentOption = ( typeAcquisition || ( typeAcquisition = getDefaultTypeAcquisition ( configFileName ) ) ) ;
33423313 break ;
3343- case "typingOptions" :
3344- currentOption = ( typingOptionstypeAcquisition || ( typingOptionstypeAcquisition = getDefaultTypeAcquisition ( configFileName ) ) ) ;
3345- break ;
33463314 default :
33473315 Debug . fail ( "Unknown option" ) ;
33483316 }
@@ -3394,18 +3362,7 @@ function parseOwnConfigOfJsonSourceFile(
33943362 const json = convertConfigFileToObject ( sourceFile , errors , /*reportOptionsErrors*/ true , optionsIterator ) ;
33953363
33963364 if ( ! typeAcquisition ) {
3397- if ( typingOptionstypeAcquisition ) {
3398- typeAcquisition = ( typingOptionstypeAcquisition . enableAutoDiscovery !== undefined ) ?
3399- {
3400- enable : typingOptionstypeAcquisition . enableAutoDiscovery ,
3401- include : typingOptionstypeAcquisition . include ,
3402- exclude : typingOptionstypeAcquisition . exclude
3403- } :
3404- typingOptionstypeAcquisition ;
3405- }
3406- else {
3407- typeAcquisition = getDefaultTypeAcquisition ( configFileName ) ;
3408- }
3365+ typeAcquisition = getDefaultTypeAcquisition ( configFileName ) ;
34093366 }
34103367
34113368 if ( rootCompilerOptions && json && json . compilerOptions === undefined ) {
@@ -3539,9 +3496,7 @@ function convertTypeAcquisitionFromJsonWorker(jsonOptions: any,
35393496 basePath : string , errors : Push < Diagnostic > , configFileName ?: string ) : TypeAcquisition {
35403497
35413498 const options = getDefaultTypeAcquisition ( configFileName ) ;
3542- const typeAcquisition = convertEnableAutoDiscoveryToEnable ( jsonOptions ) ;
3543-
3544- convertOptionsFromJson ( getCommandLineTypeAcquisitionMap ( ) , typeAcquisition , basePath , options , typeAcquisitionDidYouMeanDiagnostics , errors ) ;
3499+ convertOptionsFromJson ( getCommandLineTypeAcquisitionMap ( ) , jsonOptions , basePath , options , typeAcquisitionDidYouMeanDiagnostics , errors ) ;
35453500 return options ;
35463501}
35473502
0 commit comments