Do not update typings for project if type aquisition is disabled

This commit is contained in:
Sheetal Nandi
2024-09-20 11:45:37 -07:00
parent b1ae179397
commit 628eb554f5
2 changed files with 373 additions and 10 deletions
+1
View File
@@ -1534,6 +1534,7 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo
scheduleUpdate: boolean,
): void {
if (setTypings) {
if (!this.getTypeAcquisition().enable) return;
this.typingsCache = {
compilerOptions: setTypings.compilerOptions,
typeAcquisition: setTypings.typeAcquisition,