File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2877,12 +2877,20 @@ $(OUT_DIR):
2877
2877
}
2878
2878
}
2879
2879
} catch ( error ) {
2880
+ GlobalEvent . log_warn ( < Error > error ) ;
2880
2881
const msg = [
2881
2882
`${ toolchain . getToolchainPrefix ( ) } gcc not avaliable:\n${ ( < Error > error ) . message } ` ,
2882
2883
`Please check your package.json and run 'xpm install' to install xpack dependences.`
2883
2884
] . join ( os . EOL ) ;
2884
- GlobalEvent . emit ( 'msg' , newMessage ( 'Error' , msg ) ) ;
2885
- GlobalEvent . log_warn ( < Error > error ) ;
2885
+ vscode . window . showErrorMessage ( msg , 'Install' , 'Later' )
2886
+ . then ( ( value ) => {
2887
+ if ( value == 'Install' ) {
2888
+ runShellCommand ( 'xpm install' , 'xpm install' , {
2889
+ useTerminal : true ,
2890
+ cwd : this . getRootDir ( ) . path
2891
+ } ) ;
2892
+ }
2893
+ } ) ;
2886
2894
return false
2887
2895
}
2888
2896
}
You can’t perform that action at this time.
0 commit comments