Skip to content

Commit 92894d3

Browse files
authored
Make watch/FS testing code friendlier for project loading in module transformation (microsoft#49087)
1 parent b689cd0 commit 92894d3

File tree

4 files changed

+17
-21
lines changed

4 files changed

+17
-21
lines changed

src/compiler/watch.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,13 @@ namespace ts {
513513
ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
514514
WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
515515
PackageJson: "package.json file",
516+
ClosedScriptInfo: "Closed Script info",
517+
ConfigFileForInferredRoot: "Config file for the inferred project root",
518+
NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
519+
MissingSourceMapFile: "Missing source map file",
520+
NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
521+
MissingGeneratedFile: "Missing generated file",
522+
NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
516523
};
517524

518525
export interface WatchTypeRegistry {
@@ -527,6 +534,15 @@ namespace ts {
527534
ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
528535
WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
529536
PackageJson: "package.json file",
537+
538+
// Additional tsserver specific watch information
539+
ClosedScriptInfo: "Closed Script info",
540+
ConfigFileForInferredRoot: "Config file for the inferred project root",
541+
NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
542+
MissingSourceMapFile: "Missing source map file",
543+
NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
544+
MissingGeneratedFile: "Missing generated file",
545+
NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
530546
}
531547

532548
interface WatchFactory<X, Y = undefined> extends ts.WatchFactory<X, Y> {

src/harness/virtualFileSystemWithWatch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ interface Array<T> { length: number; [n: number]: T; }`
9797
symLink: string;
9898
}
9999

100-
type FSEntry = FsFile | FsFolder | FsSymLink;
100+
export type FSEntry = FsFile | FsFolder | FsSymLink;
101101

102102
function isFsFolder(s: FSEntry | undefined): s is FsFolder {
103103
return !!s && isArray((s as FsFolder).entries);

src/server/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"types.ts",
1818
"utilitiesPublic.ts",
1919
"utilities.ts",
20-
"watchType.ts",
2120
"protocol.ts",
2221
"scriptInfo.ts",
2322
"typingsCache.ts",

src/server/watchType.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)