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 12
12
13
13
"BUTTONS_RESTART_NOW" : " Restart Now" ,
14
14
"BUTTONS_SEE_DETAILS" : " See Details" ,
15
+ "BUTTONS_OK" : " Ok" ,
15
16
16
17
"COMMAND_ERROR" : " Something went wrong with '{0}'." ,
17
18
"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 {
115
115
try {
116
116
validatorFunction ( ) ;
117
117
} catch ( err : any ) {
118
- this . messageService . showCommandError ( err ) ;
118
+ this . messageService . showErrorMessage ( err ) ;
119
119
return false ;
120
120
}
121
121
return true ;
@@ -205,7 +205,7 @@ export default class SetupAccount extends BaseAction {
205
205
206
206
const warning = ExecutionContextService . getBrowserBasedWarningMessages ( ) ;
207
207
if ( warning ) {
208
- this . messageService . showCommandWarning ( warning ) ;
208
+ this . messageService . showWarningMessageWithOk ( warning ) ;
209
209
}
210
210
}
211
211
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ export default class MessageService {
52
52
) ;
53
53
}
54
54
55
+ showWarningMessageWithOk ( warningMessage : string , includeProjectName = true ) {
56
+ window . showWarningMessage (
57
+ includeProjectName ? this . addProjectNameToMessage ( warningMessage ) : warningMessage ,
58
+ this . translationService . getMessage ( BUTTONS . OK ) ) ;
59
+ }
60
+
55
61
showErrorMessage ( errorMessage : string ) {
56
62
window . showErrorMessage ( this . addProjectNameToMessage ( errorMessage ) ) ;
57
63
}
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export const ANSWERS = {
22
22
export const BUTTONS = {
23
23
RESTART_NOW : 'BUTTONS_RESTART_NOW' ,
24
24
SEE_DETAILS : 'BUTTONS_SEE_DETAILS' ,
25
+ OK : 'BUTTONS_OK'
25
26
} ;
26
27
27
28
export const COMMAND = {
You can’t perform that action at this time.
0 commit comments