Refactoring of the builder

This commit is contained in:
Sheetal Nandi
2017-07-18 17:04:29 -07:00
parent ae87838f45
commit 802e283aa7
6 changed files with 243 additions and 311 deletions

View File

@@ -1193,11 +1193,11 @@ namespace ts.server {
}
private getCompileOnSaveAffectedFileList(args: protocol.FileRequestArgs): protocol.CompileOnSaveAffectedFileListSingleProject[] {
const info = this.projectService.getScriptInfo(args.file);
const info = this.projectService.getScriptInfoEnsuringProjectsUptoDate(args.file);
const result: protocol.CompileOnSaveAffectedFileListSingleProject[] = [];
if (!info) {
return [];
return result;
}
// if specified a project, we only return affected file list in this project