Skip to content

Commit

Permalink
Also save all files when doing a sync
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 547236237
  • Loading branch information
Googler authored and copybara-github committed Jul 11, 2023
1 parent 19e3095 commit 2f9fb05
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import com.google.idea.blaze.base.sync.projectview.WorkspaceLanguageSettings;
import com.google.idea.blaze.base.sync.workspace.WorkspacePathResolver;
import com.google.idea.blaze.base.targetmaps.SourceToTargetMap;
import com.google.idea.blaze.base.util.SaveUtil;
import com.google.idea.blaze.common.Label;
import com.google.idea.blaze.common.PrintOutput;
import com.google.idea.blaze.exception.BuildException;
Expand Down Expand Up @@ -148,6 +149,7 @@ public void deltaSync(BlazeContext context) {

public void sync(BlazeContext context, Optional<PostQuerySyncData> lastQuery) {
try {
SaveUtil.saveAllFiles();
BlazeProjectSnapshot newProject =
lastQuery.isEmpty()
? projectQuerier.fullQuery(projectDefinition, context)
Expand Down

0 comments on commit 2f9fb05

Please sign in to comment.