mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Limit the resolution invalidation to max number of files as invalidation for larger cache might take more time than to just recalculate resolutions
This commit is contained in:
@@ -282,7 +282,7 @@ namespace ts.server {
|
||||
}
|
||||
const isInfoRoot = p.isRoot(this);
|
||||
// detach is unnecessary since we'll clean the list of containing projects anyways
|
||||
p.removeFile(this, /*detachFromProjects*/ false);
|
||||
p.removeFile(this, /*fileExists*/ false, /*detachFromProjects*/ false);
|
||||
// If the info was for the external or configured project's root,
|
||||
// add missing file as the root
|
||||
if (isInfoRoot && p.projectKind !== ProjectKind.Inferred) {
|
||||
|
||||
Reference in New Issue
Block a user