Skip to content

Commit ae2b7c2

Browse files
committed
Removing cachePath from discoverTypings and DiscoverTypingsInfo.
With the move to using the packageNameToLocation map it is no longer required.
1 parent 0cba37d commit ae2b7c2

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

src/compiler/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,6 @@ namespace ts {
24422442

24432443
export interface DiscoverTypingsInfo {
24442444
fileNames: string[]; // The file names that belong to the same project.
2445-
cachePath: string; // The path to the typings cache
24462445
projectRootPath: string; // The path to the project root directory
24472446
safeListPath: string; // The path used to retrieve the safe list
24482447
packageNameToTypingLocation: Map<string>; // The map of package names to their cached typing locations

src/services/jsTyping.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ namespace ts.JsTyping {
3030
/**
3131
* @param host is the object providing I/O related operations.
3232
* @param fileNames are the file names that belong to the same project
33-
* @param cachePath is the path to the typings cache
3433
* @param projectRootPath is the path to the project root directory
3534
* @param safeListPath is the path used to retrieve the safe list
3635
* @param packageNameToTypingLocation is the map of package names to their cached typing locations
@@ -40,7 +39,6 @@ namespace ts.JsTyping {
4039
export function discoverTypings(
4140
host: TypingResolutionHost,
4241
fileNames: string[],
43-
cachePath: Path,
4442
projectRootPath: Path,
4543
safeListPath: Path,
4644
packageNameToTypingLocation: Map<string>,

src/services/shims.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,6 @@ namespace ts {
994994
return ts.JsTyping.discoverTypings(
995995
this.host,
996996
info.fileNames,
997-
toPath(info.cachePath, info.cachePath, getCanonicalFileName),
998997
toPath(info.projectRootPath, info.projectRootPath, getCanonicalFileName),
999998
toPath(info.safeListPath, info.safeListPath, getCanonicalFileName),
1000999
info.packageNameToTypingLocation,

0 commit comments

Comments
 (0)