Do not update graph in builder if compile on save is not on

This commit is contained in:
Sheetal Nandi 2017-07-18 17:34:56 -07:00
parent 802e283aa7
commit 499fabc2c1

View File

@ -594,7 +594,7 @@ namespace ts.server {
// update builder only if language service is enabled
// otherwise tell it to drop its internal state
if (this.languageServiceEnabled) {
if (this.languageServiceEnabled && this.compileOnSaveEnabled) {
this.builder.onProjectUpdateGraph();
}
else {