add projectUsesOutFile field to protocol.CompileOnSaveAffectedFileListSingleProject (#13915)

This commit is contained in:
Vladimir Matveev
2017-02-08 11:01:32 -08:00
committed by GitHub
parent 51d4970ce0
commit bb71dcdde8
3 changed files with 55 additions and 1 deletions

View File

@@ -1239,6 +1239,11 @@ namespace ts.server.protocol {
* List of files names that should be recompiled
*/
fileNames: string[];
/**
* true if project uses outFile or out compiler option
*/
projectUsesOutFile: boolean;
}
/**

View File

@@ -1040,7 +1040,8 @@ namespace ts.server {
if (project.compileOnSaveEnabled && project.languageServiceEnabled) {
result.push({
projectFileName: project.getProjectName(),
fileNames: project.getCompileOnSaveAffectedFileList(info)
fileNames: project.getCompileOnSaveAffectedFileList(info),
projectUsesOutFile: !!project.getCompilerOptions().outFile || !!project.getCompilerOptions().out
});
}
}