@@ -310,10 +310,7 @@ type TypingWatchers = Map<Path, FileWatcher> & { isInvoked?: boolean; };
310
310
interface TypingsCacheEntry {
311
311
readonly typeAcquisition : TypeAcquisition ;
312
312
readonly compilerOptions : CompilerOptions ;
313
- readonly typings : SortedReadonlyArray < string > ;
314
313
readonly unresolvedImports : SortedReadonlyArray < string > | undefined ;
315
- /* mainly useful for debugging */
316
- poisoned : boolean ;
317
314
}
318
315
319
316
function setIsEqualTo ( arr1 : string [ ] | undefined , arr2 : string [ ] | undefined ) : boolean {
@@ -1477,9 +1474,7 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo
1477
1474
this . typingsCache = {
1478
1475
compilerOptions : this . getCompilationSettings ( ) ,
1479
1476
typeAcquisition,
1480
- typings : entry ? entry . typings : emptyArray ,
1481
1477
unresolvedImports : this . lastCachedUnresolvedImportsList ,
1482
- poisoned : true ,
1483
1478
} ;
1484
1479
// something has been changed, issue a request to update typings
1485
1480
this . projectService . typingsInstaller . enqueueInstallTypingsRequest ( this , typeAcquisition , this . lastCachedUnresolvedImportsList ) ;
@@ -1488,15 +1483,12 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo
1488
1483
1489
1484
/** @internal */
1490
1485
updateTypingFiles ( compilerOptions : CompilerOptions , typeAcquisition : TypeAcquisition , unresolvedImports : SortedReadonlyArray < string > , newTypings : string [ ] ) {
1491
- const typings = sort ( newTypings ) ;
1492
1486
this . typingsCache = {
1493
1487
compilerOptions,
1494
1488
typeAcquisition,
1495
- typings,
1496
1489
unresolvedImports,
1497
- poisoned : false ,
1498
1490
} ;
1499
- const typingFiles = ! typeAcquisition || ! typeAcquisition . enable ? emptyArray : typings ;
1491
+ const typingFiles = ! typeAcquisition || ! typeAcquisition . enable ? emptyArray : sort ( newTypings ) ;
1500
1492
if ( enumerateInsertsAndDeletes < string , string > ( typingFiles , this . typingFiles , getStringComparer ( ! this . useCaseSensitiveFileNames ( ) ) , /*inserted*/ noop , removed => this . detachScriptInfoFromProject ( removed ) ) ) {
1501
1493
// If typing files changed, then only schedule project update
1502
1494
this . typingFiles = typingFiles ;
0 commit comments