Merge pull request #23241 from Microsoft/skipWatchingTypeCacheInfos

[release-2.8] Skip watching script infos in the global type cache location
This commit is contained in:
Sheetal Nandi
2018-04-09 11:31:06 -07:00
committed by GitHub
7 changed files with 29 additions and 15 deletions
+2
View File
@@ -2258,6 +2258,8 @@ namespace ts {
* Adds a trailing directory separator to a path, if it does not already have one.
* @param path The path.
*/
export function ensureTrailingDirectorySeparator(path: Path): Path;
export function ensureTrailingDirectorySeparator(path: string): string;
export function ensureTrailingDirectorySeparator(path: string) {
if (path.charAt(path.length - 1) !== directorySeparator) {
return path + directorySeparator;