Skip to content

Commit 5143643

Browse files
authored
fix: git scm 1.68.1 actionButton enabled (#2698)
* fix: git scm 1.68.1 actionButton enabled * fix: git scm 1.68.1 actionButton enabled
1 parent 4e2ab44 commit 5143643

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

packages/extension/src/hosted/api/vscode/ext.host.scm.ts

+9-5
Original file line numberDiff line numberDiff line change
@@ -456,20 +456,24 @@ class ExtHostSourceControl implements vscode.SourceControl {
456456
} else if (typeof actionButton?.command === 'string') {
457457
internal = {
458458
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(
460461
(command) => this._commands.converter.toInternal(command, this._actionButtonDisposables.value!)!,
461-
)),
462+
),
463+
),
462464
description: (actionButton as any).title,
463465
enabled: true,
464466
};
465467
} else {
466468
internal = {
467469
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(
469472
(command) => this._commands.converter.toInternal(command, this._actionButtonDisposables.value!)!,
470-
)),
473+
),
474+
),
471475
description: actionButton.description || (actionButton as any).tooltip,
472-
enabled: actionButton.enabled,
476+
enabled: actionButton.enabled ?? true,
473477
};
474478
}
475479
this._proxy.$updateSourceControl(this.handle, { actionButton: internal ?? null });

0 commit comments

Comments
 (0)