We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5e0aa0 commit 70da8c0Copy full SHA for 70da8c0
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