Skip to content

Commit 9c34235

Browse files
committed
Fix non working ctrl+C when env is not properly configured and "Sync to Playground" option is selected
1 parent 8c80d72 commit 9c34235

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/services/platform-environment-requirements.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export class PlatformEnvironmentRequirements implements IPlatformEnvironmentRequ
1919
return this.$injector.resolve("previewAppLiveSyncService");
2020
}
2121

22+
@cache()
23+
private get $previewCommandHelper(): IPreviewCommandHelper {
24+
return this.$injector.resolve("previewCommandHelper");
25+
}
26+
2227
public static CLOUD_SETUP_OPTION_NAME = "Configure for Cloud Builds";
2328
public static LOCAL_SETUP_OPTION_NAME = "Configure for Local Builds";
2429
public static TRY_CLOUD_OPERATION_OPTION_NAME = "Try Cloud Operation";
@@ -179,6 +184,7 @@ export class PlatformEnvironmentRequirements implements IPlatformEnvironmentRequ
179184
this.$errors.failWithoutHelp(`No project found. In order to sync to playground you need to go to project directory or specify --path option.`);
180185
}
181186

187+
this.$previewCommandHelper.run();
182188
await this.$previewAppLiveSyncService.initialSync({
183189
projectDir,
184190
appFilesUpdaterOptions: {

0 commit comments

Comments
 (0)