File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
packages/vscode-extension Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1212
1313 "BUTTONS_RESTART_NOW" : " Restart Now" ,
1414 "BUTTONS_SEE_DETAILS" : " See Details" ,
15+ "BUTTONS_OK" : " Ok" ,
1516
1617 "COMMAND_ERROR" : " Something went wrong with '{0}'." ,
1718 "COMMAND_SUCCESS" : " '{0}' has been successfully executed." ,
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export default class SetupAccount extends BaseAction {
115115 try {
116116 validatorFunction ( ) ;
117117 } catch ( err : any ) {
118- this . messageService . showCommandError ( err ) ;
118+ this . messageService . showErrorMessage ( err ) ;
119119 return false ;
120120 }
121121 return true ;
@@ -205,7 +205,7 @@ export default class SetupAccount extends BaseAction {
205205
206206 const warning = ExecutionContextService . getBrowserBasedWarningMessages ( ) ;
207207 if ( warning ) {
208- this . messageService . showCommandWarning ( warning ) ;
208+ this . messageService . showWarningMessageWithOk ( warning ) ;
209209 }
210210 }
211211
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ export default class MessageService {
5252 ) ;
5353 }
5454
55+ showWarningMessageWithOk ( warningMessage : string , includeProjectName = true ) {
56+ window . showWarningMessage (
57+ includeProjectName ? this . addProjectNameToMessage ( warningMessage ) : warningMessage ,
58+ this . translationService . getMessage ( BUTTONS . OK ) ) ;
59+ }
60+
5561 showErrorMessage ( errorMessage : string ) {
5662 window . showErrorMessage ( this . addProjectNameToMessage ( errorMessage ) ) ;
5763 }
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export const ANSWERS = {
2222export const BUTTONS = {
2323 RESTART_NOW : 'BUTTONS_RESTART_NOW' ,
2424 SEE_DETAILS : 'BUTTONS_SEE_DETAILS' ,
25+ OK : 'BUTTONS_OK'
2526} ;
2627
2728export const COMMAND = {
You can’t perform that action at this time.
0 commit comments