File tree 1 file changed +9
-5
lines changed
packages/extension/src/hosted/api/vscode
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -456,20 +456,24 @@ class ExtHostSourceControl implements vscode.SourceControl {
456
456
} else if ( typeof actionButton ?. command === 'string' ) {
457
457
internal = {
458
458
command : this . _commands . converter . toInternal ( actionButton as any , this . _actionButtonDisposables . value ) ! ,
459
- secondaryCommands : actionButton . secondaryCommands ?. map ( ( commandGroup ) => commandGroup . map (
459
+ secondaryCommands : actionButton . secondaryCommands ?. map ( ( commandGroup ) =>
460
+ commandGroup . map (
460
461
( command ) => this . _commands . converter . toInternal ( command , this . _actionButtonDisposables . value ! ) ! ,
461
- ) ) ,
462
+ ) ,
463
+ ) ,
462
464
description : ( actionButton as any ) . title ,
463
465
enabled : true ,
464
466
} ;
465
467
} else {
466
468
internal = {
467
469
command : this . _commands . converter . toInternal ( actionButton . command , this . _actionButtonDisposables . value ) ! ,
468
- secondaryCommands : actionButton . secondaryCommands ?. map ( ( commandGroup ) => commandGroup . map (
470
+ secondaryCommands : actionButton . secondaryCommands ?. map ( ( commandGroup ) =>
471
+ commandGroup . map (
469
472
( command ) => this . _commands . converter . toInternal ( command , this . _actionButtonDisposables . value ! ) ! ,
470
- ) ) ,
473
+ ) ,
474
+ ) ,
471
475
description : actionButton . description || ( actionButton as any ) . tooltip ,
472
- enabled : actionButton . enabled ,
476
+ enabled : actionButton . enabled ?? true ,
473
477
} ;
474
478
}
475
479
this . _proxy . $updateSourceControl ( this . handle , { actionButton : internal ?? null } ) ;
You can’t perform that action at this time.
0 commit comments