mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 19:27:35 -06:00
Separate out caching file system test
This commit is contained in:
parent
96c73701c1
commit
160c73f942
@ -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",
|
||||
|
||||
704
src/testRunner/unittests/tsserverCachingFileSystemInformation.ts
Normal file
704
src/testRunner/unittests/tsserverCachingFileSystemInformation.ts
Normal file
File diff suppressed because one or more lines are too long
@ -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
Loading…
x
Reference in New Issue
Block a user