@@ -302,8 +302,8 @@ export class ProposedTransformationExplorer {
302
302
codeTransformApiNames : 'ExportResultArchive' ,
303
303
codeTransformSessionId : codeTransformTelemetryState . getSessionId ( ) ,
304
304
codeTransformJobId : transformByQState . getJobId ( ) ,
305
- codeTransformApiErrorMessage : e ? .message || errorMessage ,
306
- codeTransformRequestId : e ? .requestId ,
305
+ codeTransformApiErrorMessage : ( e as Error ) . message ?? errorMessage ,
306
+ codeTransformRequestId : e . requestId ?? '' ,
307
307
result : MetadataResult . Fail ,
308
308
reason : 'ExportResultArchiveFailed' ,
309
309
} )
@@ -336,7 +336,7 @@ export class ProposedTransformationExplorer {
336
336
)
337
337
} catch ( e : any ) {
338
338
deserializeErrorMessage =
339
- e ? .message ||
339
+ ( e as Error ) . message ??
340
340
'Transform by Q experienced an error during the deserialization of the downloaded result archive'
341
341
getLogger ( ) . error ( 'CodeTransform: ParseDiff error = ' , deserializeErrorMessage )
342
342
void vscode . window . showErrorMessage ( deserializeErrorMessage )
@@ -361,7 +361,8 @@ export class ProposedTransformationExplorer {
361
361
result : MetadataResult . Pass ,
362
362
} )
363
363
364
- await vscode . window . showInformationMessage ( CodeWhispererConstants . viewProposedChangesMessage )
364
+ // Do not await this so that the summary reveals without user needing to close this notification
365
+ void vscode . window . showInformationMessage ( CodeWhispererConstants . viewProposedChangesMessage )
365
366
await vscode . commands . executeCommand ( 'aws.amazonq.transformationHub.summary.reveal' )
366
367
} )
367
368
0 commit comments