@@ -2359,24 +2359,26 @@ export class Repository implements Disposable {
2359
2359
const yes = { title : l10n . t ( 'Yes' ) } ;
2360
2360
const no = { title : l10n . t ( 'No' ) } ;
2361
2361
2362
- const result = await window . showWarningMessage ( `${ gitWarn } ${ addKnown } ` , yes , no , neverAgain ) ;
2363
- if ( result === yes ) {
2364
- this . ignore ( [ Uri . file ( folderPath ) ] ) ;
2365
- } else {
2362
+ window . showWarningMessage ( `${ gitWarn } ${ addKnown } ` , yes , no , neverAgain ) . then ( result => {
2363
+ if ( result === yes ) {
2364
+ this . ignore ( [ Uri . file ( folderPath ) ] ) ;
2365
+ } else {
2366
+ if ( result === neverAgain ) {
2367
+ config . update ( 'ignoreLimitWarning' , true , false ) ;
2368
+ }
2369
+
2370
+ this . didWarnAboutLimit = true ;
2371
+ }
2372
+ } ) ;
2373
+ } else {
2374
+ const ok = { title : l10n . t ( 'OK' ) } ;
2375
+ window . showWarningMessage ( gitWarn , ok , neverAgain ) . then ( result => {
2366
2376
if ( result === neverAgain ) {
2367
2377
config . update ( 'ignoreLimitWarning' , true , false ) ;
2368
2378
}
2369
2379
2370
2380
this . didWarnAboutLimit = true ;
2371
- }
2372
- } else {
2373
- const ok = { title : l10n . t ( 'OK' ) } ;
2374
- const result = await window . showWarningMessage ( gitWarn , ok , neverAgain ) ;
2375
- if ( result === neverAgain ) {
2376
- config . update ( 'ignoreLimitWarning' , true , false ) ;
2377
- }
2378
-
2379
- this . didWarnAboutLimit = true ;
2381
+ } ) ;
2380
2382
}
2381
2383
}
2382
2384
0 commit comments