From ae2b7c2aa2200eeaaecc6845f8808bfa87456a0d Mon Sep 17 00:00:00 2001 From: Jason Ramsay Date: Thu, 3 Mar 2016 15:17:52 -0800 Subject: [PATCH] Removing cachePath from discoverTypings and DiscoverTypingsInfo. With the move to using the packageNameToLocation map it is no longer required. --- src/compiler/types.ts | 1 - src/services/jsTyping.ts | 2 -- src/services/shims.ts | 1 - 3 files changed, 4 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 2d53d5addad..ca896c0914a 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2442,7 +2442,6 @@ namespace ts { export interface DiscoverTypingsInfo { fileNames: string[]; // The file names that belong to the same project. - cachePath: string; // The path to the typings cache projectRootPath: string; // The path to the project root directory safeListPath: string; // The path used to retrieve the safe list packageNameToTypingLocation: Map; // The map of package names to their cached typing locations diff --git a/src/services/jsTyping.ts b/src/services/jsTyping.ts index b78434ddaa0..943693bf52e 100644 --- a/src/services/jsTyping.ts +++ b/src/services/jsTyping.ts @@ -30,7 +30,6 @@ namespace ts.JsTyping { /** * @param host is the object providing I/O related operations. * @param fileNames are the file names that belong to the same project - * @param cachePath is the path to the typings cache * @param projectRootPath is the path to the project root directory * @param safeListPath is the path used to retrieve the safe list * @param packageNameToTypingLocation is the map of package names to their cached typing locations @@ -40,7 +39,6 @@ namespace ts.JsTyping { export function discoverTypings( host: TypingResolutionHost, fileNames: string[], - cachePath: Path, projectRootPath: Path, safeListPath: Path, packageNameToTypingLocation: Map, diff --git a/src/services/shims.ts b/src/services/shims.ts index a5b09fa0224..ecfcd6f84da 100644 --- a/src/services/shims.ts +++ b/src/services/shims.ts @@ -994,7 +994,6 @@ namespace ts { return ts.JsTyping.discoverTypings( this.host, info.fileNames, - toPath(info.cachePath, info.cachePath, getCanonicalFileName), toPath(info.projectRootPath, info.projectRootPath, getCanonicalFileName), toPath(info.safeListPath, info.safeListPath, getCanonicalFileName), info.packageNameToTypingLocation,