We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96befb6 + 70da8c0 commit 47d79e8Copy full SHA for 47d79e8
lib/commands/preview.ts
@@ -1,7 +1,8 @@
1
export class PreviewCommand implements ICommand {
2
public allowedParameters: ICommandParameter[] = [];
3
4
- constructor(private $liveSyncService: ILiveSyncService,
+ constructor(private $bundleValidatorHelper: IBundleValidatorHelper,
5
+ private $liveSyncService: ILiveSyncService,
6
private $projectData: IProjectData,
7
private $options: IOptions,
8
private $playgroundQrCodeGenerator: IPlaygroundQrCodeGenerator,
@@ -26,6 +27,7 @@ export class PreviewCommand implements ICommand {
26
27
}
28
29
public async canExecute(args: string[]): Promise<boolean> {
30
+ this.$bundleValidatorHelper.validate();
31
return true;
32
33
0 commit comments