File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
packages/typescript-estree/src/create-program Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ interface WatchCompilerHostOfConfigFile<T extends ts.BuilderProgram>
32
32
onCachedDirectoryStructureHostCreate (
33
33
host : CachedDirectoryStructureHost ,
34
34
) : void ;
35
+ extraFileExtensions ?: readonly ts . FileExtensionInfo [ ] ;
35
36
}
36
37
37
38
export { WatchCompilerHostOfConfigFile } ;
Original file line number Diff line number Diff line change @@ -314,6 +314,14 @@ function createWatchProgram(
314
314
) ;
315
315
oldOnDirectoryStructureHostCreate ( host ) ;
316
316
} ;
317
+ // This works only on 3.9
318
+ watchCompilerHost . extraFileExtensions = extra . extraFileExtensions . map (
319
+ extension => ( {
320
+ extension,
321
+ isMixedContent : true ,
322
+ scriptKind : ts . ScriptKind . Deferred ,
323
+ } ) ,
324
+ ) ;
317
325
watchCompilerHost . trace = log ;
318
326
319
327
// Since we don't want to asynchronously update program we want to disable timeout methods
You can’t perform that action at this time.
0 commit comments