Feedback from the PR

This commit is contained in:
Sheetal Nandi
2017-08-07 14:47:32 -07:00
parent ae87838f45
commit 65521bc259
6 changed files with 91 additions and 44 deletions

View File

@@ -1226,6 +1226,16 @@ namespace ts.server {
getEffectiveTypeRoots() {
return getEffectiveTypeRoots(this.getCompilerOptions(), this.lsHost.host) || [];
}
/*@internal*/
updateErrorOnNoInputFiles(hasFileNames: boolean) {
if (hasFileNames) {
filterMutate(this.projectErrors, error => !isErrorNoInputFiles(error));
}
else if (!this.configFileSpecs.filesSpecs && !some(this.projectErrors, isErrorNoInputFiles)) {
this.projectErrors.push(getErrorForNoInputFiles(this.configFileSpecs, this.getConfigFilePath()));
}
}
}
/**