Close TypingInstaller watches on project close (#54025)

This commit is contained in:
Sheetal Nandi
2023-04-26 12:34:42 -07:00
committed by GitHub
parent eb014a2652
commit f22898d577
8 changed files with 980 additions and 224 deletions

View File

@@ -1012,6 +1012,7 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo
}
close() {
this.projectService.typingsCache.onProjectClosed(this);
if (this.program) {
// if we have a program - release all files that are enlisted in program but arent root
// The releasing of the roots happens later