Trigger the load of the QuerySync project data
*/
package com.google.idea.blaze.base.sync;
+import com.google.idea.blaze.base.model.BlazeProjectData;
import com.google.idea.blaze.base.qsync.QuerySync;
import com.google.idea.blaze.base.qsync.QuerySyncManager;
import com.google.idea.blaze.base.settings.BlazeImportSettings;
@@ -37,6 +38,9 @@ public class BlazeSyncStartupActivity implements StartupActivity {
return;
}
if (QuerySync.isEnabled()) {
+ // When query sync is not enabled hasProjectData triggers the load
+ BlazeProjectData unused =
+ BlazeProjectDataManager.getInstance(project).loadProject(importSettings);
QuerySyncManager.getInstance(project).initialProjectSync();
return;
}
