Skip to content

Commit 30ecea9

Browse files
author
David Hasani
committed
fix: make summary button enabled after accept/reject changes
1 parent ab87e6d commit 30ecea9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2415,7 +2415,7 @@
24152415
{
24162416
"command": "aws.amazonq.transformationHub.summary.reveal",
24172417
"title": "%AWS.command.q.transform.showChangeSummary%",
2418-
"enablement": "gumby.reviewState == InReview"
2418+
"enablement": "gumby.isSummaryAvailable"
24192419
},
24202420
{
24212421
"command": "aws.amazonq.transformationHub.reviewChanges.reveal",
@@ -3805,7 +3805,6 @@
38053805
{
38063806
"command": "aws.amazonq.showTransformationPlanInHub",
38073807
"title": "Show Transformation Plan",
3808-
"icon": "$(book)",
38093808
"enablement": "gumby.isPlanAvailable"
38103809
}
38113810
],

src/codewhisperer/commands/startTransformByQ.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ export async function setTransformationToRunningState(userInputState: UserInputS
317317
await vscode.commands.executeCommand('setContext', 'gumby.isStopButtonAvailable', true)
318318
await vscode.commands.executeCommand('setContext', 'gumby.isTransformAvailable', false)
319319
await vscode.commands.executeCommand('setContext', 'gumby.isPlanAvailable', false)
320+
await vscode.commands.executeCommand('setContext', 'gumby.isSummaryAvailable', false)
320321
await resetReviewInProgress()
321322

322323
await vscode.commands.executeCommand('aws.amazonq.refresh')

src/codewhisperer/service/transformationResultsViewProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ export class ProposedTransformationExplorer {
365365
path.join(pathContainingArchive, ExportResultArchiveStructure.PathToSummary)
366366
)
367367
transformByQState.setResultArchiveFilePath(pathContainingArchive)
368+
await vscode.commands.executeCommand('setContext', 'gumby.isSummaryAvailable', true)
368369

369370
// This metric is only emitted when placed before showInformationMessage
370371
telemetry.codeTransform_vcsDiffViewerVisible.emit({

0 commit comments

Comments
 (0)