@@ -840,7 +840,7 @@ namespace ts {
840840 * @param basePath A root directory to resolve relative path entries in the config
841841 * file to. e.g. outDir
842842 */
843- export function parseJsonConfigFileContent ( json : any , host : ParseConfigHost , basePath : string , existingOptions : CompilerOptions = { } , configFileName ?: string , resolutionStack : Path [ ] = [ ] ) : ParsedCommandLine {
843+ export function parseJsonConfigFileContent ( json : any , host : ParseConfigHost , basePath : string , existingOptions : CompilerOptions = { } , configFileName ?: string , resolutionStack : Path [ ] = [ ] , extraFileExtensions : FileExtensionInfo [ ] = [ ] ) : ParsedCommandLine {
844844 const errors : Diagnostic [ ] = [ ] ;
845845 const getCanonicalFileName = createGetCanonicalFileName ( host . useCaseSensitiveFileNames ) ;
846846 const resolvedPath = toPath ( configFileName || "" , basePath , getCanonicalFileName ) ;
@@ -980,7 +980,7 @@ namespace ts {
980980 includeSpecs = [ "**/*" ] ;
981981 }
982982
983- const result = matchFileNames ( fileNames , includeSpecs , excludeSpecs , basePath , options , host , errors ) ;
983+ const result = matchFileNames ( fileNames , includeSpecs , excludeSpecs , basePath , options , host , errors , extraFileExtensions ) ;
984984
985985 if ( result . fileNames . length === 0 && ! hasProperty ( json , "files" ) && resolutionStack . length === 0 ) {
986986 errors . push (
@@ -1185,7 +1185,7 @@ namespace ts {
11851185 * @param host The host used to resolve files and directories.
11861186 * @param errors An array for diagnostic reporting.
11871187 */
1188- function matchFileNames ( fileNames : string [ ] , include : string [ ] , exclude : string [ ] , basePath : string , options : CompilerOptions , host : ParseConfigHost , errors : Diagnostic [ ] ) : ExpandResult {
1188+ function matchFileNames ( fileNames : string [ ] , include : string [ ] , exclude : string [ ] , basePath : string , options : CompilerOptions , host : ParseConfigHost , errors : Diagnostic [ ] , extraFileExtensions : FileExtensionInfo [ ] ) : ExpandResult {
11891189 basePath = normalizePath ( basePath ) ;
11901190
11911191 // The exclude spec list is converted into a regular expression, which allows us to quickly
@@ -1219,7 +1219,7 @@ namespace ts {
12191219
12201220 // Rather than requery this for each file and filespec, we query the supported extensions
12211221 // once and store it on the expansion context.
1222- const supportedExtensions = getSupportedExtensions ( options ) ;
1222+ const supportedExtensions = getSupportedExtensions ( options , extraFileExtensions ) ;
12231223
12241224 // Literal files are always included verbatim. An "include" or "exclude" specification cannot
12251225 // remove a literal file.
0 commit comments