Skip to content

Commit e9258b8

Browse files
committed
Reset the noEmitForJsFiles option when updating compiler options
1 parent 501bfb5 commit e9258b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/project.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,9 @@ namespace ts.server {
636636
this.cachedUnresolvedImportsPerFile.clear();
637637
this.lastCachedUnresolvedImportsList = undefined;
638638
}
639+
if (this.projectKind === ProjectKind.Inferred || this.projectKind === ProjectKind.Configured) {
640+
compilerOptions.noEmitForJsFiles = true;
641+
}
639642
this.compilerOptions = compilerOptions;
640643
this.lsHost.setCompilationSettings(compilerOptions);
641644

0 commit comments

Comments
 (0)