mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Set old program build info as a location to look for from module resolution caches
This commit is contained in:
@@ -142,6 +142,7 @@ import {
|
||||
toPath,
|
||||
tracing,
|
||||
TypeAcquisition,
|
||||
TypeReferenceDirectiveResolutionCache,
|
||||
updateErrorForNoInputFiles,
|
||||
updateMissingFilePathsWatch,
|
||||
WatchDirectoryFlags,
|
||||
@@ -684,6 +685,11 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo
|
||||
);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
getTypeReferenceDirectiveResolutionCache(): TypeReferenceDirectiveResolutionCache | undefined {
|
||||
return this.resolutionCache.getTypeReferenceDirectiveResolutionCache();
|
||||
}
|
||||
|
||||
directoryExists(path: string): boolean {
|
||||
return this.directoryStructureHost.directoryExists!(path); // TODO: GH#18217
|
||||
}
|
||||
@@ -2519,6 +2525,11 @@ export class AutoImportProviderProject extends Project {
|
||||
getModuleResolutionCache() {
|
||||
return this.hostProject.getCurrentProgram()?.getModuleResolutionCache();
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
getTypeReferenceDirectiveResolutionCache() {
|
||||
return this.hostProject.getCurrentProgram()?.getTypeReferenceDirectiveResolutionCache();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user