mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
* Add cache invalidation for node_modules, config, and preferences changes * Share watches with closed script info * Update API baseline * Small adjustments for fewer object allocations * Document overloaded return value * Update baselines * Store isAutoImportable separately from modulePaths * Add back missing return * Return wrapped watcher instead of underlying one * Make user preferences part of the cache key instead of implicitly clearing in editor services * Fix missed merge conflict
22 lines
1.3 KiB
TypeScript
22 lines
1.3 KiB
TypeScript
/* @internal */
|
|
namespace ts {
|
|
// Additional tsserver specific watch information
|
|
export interface WatchTypeRegistry {
|
|
ClosedScriptInfo: "Closed Script info",
|
|
ConfigFileForInferredRoot: "Config file for the inferred project root",
|
|
NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
|
|
MissingSourceMapFile: "Missing source map file",
|
|
NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
|
|
MissingGeneratedFile: "Missing generated file",
|
|
PackageJsonFile: "package.json file for import suggestions",
|
|
NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
|
|
}
|
|
WatchType.ClosedScriptInfo = "Closed Script info";
|
|
WatchType.ConfigFileForInferredRoot = "Config file for the inferred project root";
|
|
WatchType.NodeModules = "node_modules for closed script infos and package.jsons affecting module specifier cache";
|
|
WatchType.MissingSourceMapFile = "Missing source map file";
|
|
WatchType.NoopConfigFileForInferredRoot = "Noop Config file for the inferred project root";
|
|
WatchType.MissingGeneratedFile = "Missing generated file";
|
|
WatchType.PackageJsonFile = "package.json file for import suggestions";
|
|
}
|