Skip to content

Commit 989d5b1

Browse files
author
David Hasani
committed
feat(amazonq): auto-download results
1 parent f004173 commit 989d5b1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "/transform: automatically download results when ready"
4+
}

packages/core/src/codewhisperer/commands/startTransformByQ.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,11 @@ export async function postTransformationJob() {
773773
if (transformByQState.getPayloadFilePath() !== '') {
774774
fs.rmSync(transformByQState.getPayloadFilePath(), { recursive: true, force: true }) // delete ZIP if it exists
775775
}
776+
777+
// attempt download for user
778+
if (transformByQState.isSucceeded() || transformByQState.isPartiallySucceeded()) {
779+
await vscode.commands.executeCommand('aws.amazonq.transformationHub.reviewChanges.startReview')
780+
}
776781
}
777782

778783
export async function transformationJobErrorHandler(error: any) {

0 commit comments

Comments
 (0)