Skip to content

Commit 6d3670a

Browse files
authored
fix(amazonq): view summary button aws#6578
## Problem View Summary button wasn't working after users accept changes, since we save the `summary.md` to where their project is locally. ## Solution Update summary file path.
1 parent aa0e949 commit 6d3670a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "/transform: allow View Summary button to work even after accepting diff"
4+
}

packages/core/src/codewhisperer/service/transformByQ/transformationResultsViewProvider.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,10 @@ export class ProposedTransformationExplorer {
343343
}
344344

345345
diffModel.clearChanges()
346-
transformByQState.setSummaryFilePath('')
346+
// update summary path to where it is locally after user accepts changes, so that View Summary button works
347+
transformByQState.setSummaryFilePath(
348+
path.join(transformByQState.getProjectPath(), ExportResultArchiveStructure.PathToSummary)
349+
)
347350
transformByQState.setProjectCopyFilePath('')
348351
transformByQState.setResultArchiveFilePath('')
349352
transformDataProvider.refresh()

0 commit comments

Comments
 (0)