Dont include auto type reference directives (#39472)

This commit is contained in:
Sheetal Nandi
2020-07-07 13:58:53 -07:00
committed by GitHub
parent b100680a3e
commit c08c059dae
2 changed files with 15 additions and 0 deletions

View File

@@ -282,6 +282,7 @@ namespace ts.server {
this.languageServiceEnabled = true;
if (projectService.syntaxOnly) {
this.compilerOptions.noResolve = true;
this.compilerOptions.types = [];
}
this.setInternalCompilerOptionsForEmittingJsFiles();