mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Handle package.json watch in tsc and tsserver. (#49328)
* refactoring * Maintain packagejson paths per resolution so we dont have invalidate everything on package json change * Fix todo
This commit is contained in:
1 parent
b8f6488323
commit
5cedf3e680
85 files changed
+1974
-550
No files matched your search
@@ -522,6 +522,18 @@ namespace ts.server {
|
||||
);
|
||||
}
|
||||
|
||||
/*@internal*/
|
||||
watchAffectingFileLocation(file: string, cb: FileWatcherCallback) {
|
||||
return this.projectService.watchFactory.watchFile(
|
||||
file,
|
||||
cb,
|
||||
PollingInterval.High,
|
||||
this.projectService.getWatchOptions(this),
|
||||
WatchType.PackageJson,
|
||||
this
|
||||
);
|
||||
}
|
||||
|
||||
/*@internal*/
|
||||
clearInvalidateResolutionOfFailedLookupTimer() {
|
||||
return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`);
|
||||
|
||||
Reference in new issue
Block a user