@@ -216,14 +216,17 @@ export function addCommands(
216
216
} ) ;
217
217
218
218
if ( result . button . accept ) {
219
- const id = Notification . emit ( trans . __ ( 'Initializing…' ) , 'in-progress' ) ;
219
+ const id = Notification . emit ( trans . __ ( 'Initializing…' ) , 'in-progress' , {
220
+ autoClose : false
221
+ } ) ;
220
222
try {
221
223
await gitModel . init ( currentPath ) ;
222
224
gitModel . pathRepository = currentPath ;
223
225
Notification . update ( {
224
226
id,
225
227
message : trans . __ ( 'Git repository initialized.' ) ,
226
- type : 'success'
228
+ type : 'success' ,
229
+ autoClose : 5000
227
230
} ) ;
228
231
} catch ( error ) {
229
232
console . error (
@@ -345,7 +348,9 @@ export function addCommands(
345
348
}
346
349
}
347
350
348
- id = Notification . emit ( trans . __ ( 'Pushing…' ) , 'in-progress' ) ;
351
+ id = Notification . emit ( trans . __ ( 'Pushing…' ) , 'in-progress' , {
352
+ autoClose : false
353
+ } ) ;
349
354
const details = await showGitOperationDialog (
350
355
gitModel ,
351
356
force ? Operation . ForcePush : Operation . Push ,
@@ -406,7 +411,9 @@ export function addCommands(
406
411
if ( args . force ) {
407
412
await discardAllChanges ( gitModel , trans , args . fallback as boolean ) ;
408
413
}
409
- id = Notification . emit ( trans . __ ( 'Pulling…' ) , 'in-progress' ) ;
414
+ id = Notification . emit ( trans . __ ( 'Pulling…' ) , 'in-progress' , {
415
+ autoClose : false
416
+ } ) ;
410
417
const details = await showGitOperationDialog (
411
418
gitModel ,
412
419
Operation . Pull ,
@@ -504,7 +511,9 @@ export function addCommands(
504
511
if ( id ) {
505
512
Notification . update ( { id, message } ) ;
506
513
} else {
507
- id = Notification . emit ( message , 'in-progress' ) ;
514
+ id = Notification . emit ( message , 'in-progress' , {
515
+ autoClose : false
516
+ } ) ;
508
517
}
509
518
510
519
await gitModel . resetToCommit ( gitModel . status . remote ?? undefined ) ;
@@ -934,7 +943,9 @@ export function addCommands(
934
943
}
935
944
} ) ( action ) ?? '' ;
936
945
937
- const id = Notification . emit ( message , 'in-progress' ) ;
946
+ const id = Notification . emit ( message , 'in-progress' , {
947
+ autoClose : false
948
+ } ) ;
938
949
try {
939
950
await gitModel . resolveRebase ( action as any ) ;
940
951
} catch ( err ) {
@@ -972,7 +983,8 @@ export function addCommands(
972
983
Notification . update ( {
973
984
id,
974
985
type : 'success' ,
975
- message : message_
986
+ message : message_ ,
987
+ autoClose : 5000
976
988
} ) ;
977
989
}
978
990
} ,
@@ -995,15 +1007,17 @@ export function addCommands(
995
1007
if ( stashDialog . button . accept ) {
996
1008
const id = Notification . emit (
997
1009
trans . __ ( 'Stashing changes' ) ,
998
- 'in-progress'
1010
+ 'in-progress' ,
1011
+ { autoClose : false }
999
1012
) ;
1000
1013
try {
1001
1014
await gitModel . stashChanges ( stashMsg ) ;
1002
1015
// Success
1003
1016
Notification . update ( {
1004
1017
id,
1005
1018
message : trans . __ ( 'Successfully stashed' ) ,
1006
- type : 'success'
1019
+ type : 'success' ,
1020
+ autoClose : 5000
1007
1021
} ) ;
1008
1022
} catch ( error : any ) {
1009
1023
console . error (
0 commit comments