Separate out caching file system test

This commit is contained in:
Sheetal Nandi 2018-12-07 13:12:14 -08:00
parent 96c73701c1
commit 160c73f942
4 changed files with 708 additions and 714 deletions

View File

@ -88,6 +88,7 @@
"unittests/tsconfigParsing.ts",
"unittests/tscWatchEmit.ts",
"unittests/tscWatchMode.ts",
"unittests/tsserverCachingFileSystemInformation.ts",
"unittests/tsserverLargeFileReferencedEvent.ts",
"unittests/tsserverProjectLoadingEvents.ts",
"unittests/tsserverProjectSystem.ts",

File diff suppressed because one or more lines are too long

View File

@ -450,19 +450,15 @@ namespace ts.projectSystem {
}
export const nodeModules = "node_modules";
//function getNodeModuleDirectories(dir: string) {
// return getRootsToWatchWithAncestorDirectory(dir, nodeModules);
//}
export function getNodeModuleDirectories(dir: string) {
return getRootsToWatchWithAncestorDirectory(dir, nodeModules);
}
export const nodeModulesAtTypes = "node_modules/@types";
export function getTypeRootsFromLocation(currentDirectory: string) {
return getRootsToWatchWithAncestorDirectory(currentDirectory, nodeModulesAtTypes);
}
//function getNumberOfWatchesInvokedForRecursiveWatches(recursiveWatchedDirs: string[], file: string) {
// return countWhere(recursiveWatchedDirs, dir => file.length > dir.length && startsWith(file, dir) && file[dir.length] === directorySeparator);
//}
//function checkOpenFiles(projectService: server.ProjectService, expectedFiles: File[]) {
// checkArray("Open files", arrayFrom(projectService.openFiles.keys(), path => projectService.getScriptInfoForPath(path as Path)!.fileName), expectedFiles.map(file => file.path));
//}

File diff suppressed because one or more lines are too long