Do not calculate signatures if old state is not used (#43314)

* Extra tests in preparation for lazy signature making sure the original intent of test is maintained

* Whenver we cant use state delay signature calculation and use source file version as signature

* Incremental correctness checks

* Retain old behavior in compile on save by disabling use of file version as signature in when state is not reused
This commit is contained in:
Sheetal Nandi
2021-03-23 13:43:43 -07:00
committed by GitHub
parent dcc27ebaf2
commit 04205ca32c
227 changed files with 41590 additions and 1404 deletions

View File

@@ -640,7 +640,7 @@ namespace ts.server {
return [];
}
updateProjectIfDirty(this);
this.builderState = BuilderState.create(this.program!, this.projectService.toCanonicalFileName, this.builderState);
this.builderState = BuilderState.create(this.program!, this.projectService.toCanonicalFileName, this.builderState, /*disableUseFileVersionAsSignature*/ true);
return mapDefined(
BuilderState.getFilesAffectedBy(
this.builderState,