File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export class PreviewCommand implements ICommand {
3
3
private static MIN_SUPPORTED_WEBPACK_VERSION = "0.17.0" ;
4
4
5
5
constructor ( private $bundleValidatorHelper : IBundleValidatorHelper ,
6
+ private $errors : IErrors ,
6
7
private $liveSyncService : ILiveSyncService ,
7
8
private $networkConnectivityValidator : INetworkConnectivityValidator ,
8
9
private $projectData : IProjectData ,
@@ -27,6 +28,10 @@ export class PreviewCommand implements ICommand {
27
28
}
28
29
29
30
public async canExecute ( args : string [ ] ) : Promise < boolean > {
31
+ if ( args && args . length ) {
32
+ this . $errors . fail ( `The arguments '${ args . join ( " " ) } ' are not valid for the preview command.` ) ;
33
+ }
34
+
30
35
await this . $networkConnectivityValidator . validate ( ) ;
31
36
this . $bundleValidatorHelper . validate ( PreviewCommand . MIN_SUPPORTED_WEBPACK_VERSION ) ;
32
37
return true ;
You can’t perform that action at this time.
0 commit comments