Skip to content

Commit e75caf3

Browse files
l0minousDiler Zaza
andauthored
feat(stepfunctions): Start Execution launching Execution Details (#7741)
## Problem Currently Start Execution only outputs the execution arn to the output ## Solution Adding a call to execution detail provider after starting an execution, launching the execution details webview ( Also works with express executions ) ## Verification ![test8](https://github.com/user-attachments/assets/9c000d28-3563-42d0-aa93-5945ea4ba7c0) --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: Diler Zaza <[email protected]>
1 parent 68253c3 commit e75caf3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

packages/core/src/stepFunctions/vue/executeStateMachine/executeStateMachine.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { ExtContext } from '../../../shared/extensions'
1515
import { VueWebview } from '../../../webviews/main'
1616
import * as vscode from 'vscode'
1717
import { telemetry } from '../../../shared/telemetry/telemetry'
18+
import { ExecutionDetailProvider } from '../../executionDetails/executionDetailProvider'
1819

1920
interface StateMachine {
2021
arn: string
@@ -61,9 +62,15 @@ export class ExecuteStateMachineWebview extends VueWebview {
6162
stateMachineArn: this.stateMachine.arn,
6263
input,
6364
})
65+
await ExecutionDetailProvider.openExecutionDetails(
66+
startExecResponse.executionArn!,
67+
startExecResponse.startDate!.toString()
68+
)
6469
this.logger.info('started execution for Step Functions State Machine')
6570
this.channel.appendLine(localize('AWS.stepFunctions.executeStateMachine.info.started', 'Execution started'))
6671
this.channel.appendLine(startExecResponse.executionArn || '')
72+
73+
this.dispose()
6774
} catch (e) {
6875
executeResult = 'Failed'
6976
const error = e as Error
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "[Step Functions] Start Execution option in the AWS Explorer now opens the execution details page after clicking Execute"
4+
}

0 commit comments

Comments
 (0)