Skip to content

Commit 9c1d8bd

Browse files
author
Diler Zaza
committed
metadata now includes execution arn
1 parent a41318d commit 9c1d8bd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/core/src/stepFunctions/activation.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,12 @@ async function registerStepFunctionCommands(
107107
'arn:aws:states:us-east-1:123456789012:execution:MyStateMachine:12345678-1234-1234-1234-123456789012',
108108
})
109109

110-
if (arn) {
111-
if (validate(arn)) {
112-
await ExecutionDetailProvider.openExecutionDetails(arn)
113-
} else {
114-
void vscode.window.showErrorMessage(
115-
'Invalid ARN format. Please provide a valid Step Functions execution ARN (e.g., arn:aws:states:us-east-1:123456789012:execution:MyStateMachine:12345678-1234-1234-1234-123456789012)'
116-
)
117-
}
110+
if (validate(arn)) {
111+
await ExecutionDetailProvider.openExecutionDetails(arn!)
112+
} else {
113+
void vscode.window.showErrorMessage(
114+
'Invalid ARN format. Please provide a valid Step Functions execution ARN (e.g., arn:aws:states:us-east-1:123456789012:execution:MyStateMachine:12345678-1234-1234-1234-123456789012)'
115+
)
118116
}
119117
})
120118
)

0 commit comments

Comments
 (0)