Skip to content

Commit 3e03413

Browse files
author
Zelin Zhou
committed
feat(stepfunctions): use readonly mode of workflowStudio to render StateMachine Graph in CDK applications.
1 parent 80c25f3 commit 3e03413

File tree

13 files changed

+150
-474
lines changed

13 files changed

+150
-474
lines changed

packages/core/src/shared/telemetry/vscodeTelemetry.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,20 @@
434434
}
435435
]
436436
},
437+
{
438+
"name": "stepfunctions_renderCDKStateMachineGraph",
439+
"description": "Triggered when rendering StateMachine Graph from CDK Applications."
440+
},
441+
{
442+
"name": "stepfunctions_cfnTemplateChange",
443+
"description": "Triggered when the CloudFormation template file associated with AWS Step Functions State Machine visualization is modified.",
444+
"metadata": [
445+
{
446+
"type": "id",
447+
"required": true
448+
}
449+
]
450+
},
437451
{
438452
"name": "vscode_activeRegions",
439453
"description": "Record the number of active regions at startup and when regions are added/removed",

packages/core/src/stepFunctions/activation.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { publishStateMachine } from './commands/publishStateMachine'
1616
import { Commands } from '../shared/vscode/commands2'
1717

1818
import { ASL_FORMATS, YAML_ASL, JSON_ASL } from './constants/aslFormats'
19-
import { AslVisualizationCDKManager } from './commands/visualizeStateMachine/aslVisualizationCDKManager'
2019
import { renderCdkStateMachineGraph } from './commands/visualizeStateMachine/renderStateMachineGraphCDK'
2120
import { ToolkitError } from '../shared/errors'
2221
import { telemetry } from '../shared/telemetry/telemetry'
@@ -88,11 +87,9 @@ async function registerStepFunctionCommands(
8887
awsContext: AwsContext,
8988
outputChannel: vscode.OutputChannel
9089
): Promise<void> {
91-
const cdkVisualizationManager = new AslVisualizationCDKManager(extensionContext)
92-
9390
extensionContext.subscriptions.push(
9491
previewStateMachineCommand.register(),
95-
renderCdkStateMachineGraph.register(cdkVisualizationManager),
92+
renderCdkStateMachineGraph.register(),
9693
Commands.register('aws.stepfunctions.createStateMachineFromTemplate', async () => {
9794
try {
9895
await createStateMachineFromTemplate(extensionContext)

packages/core/src/stepFunctions/commands/visualizeStateMachine/abstractAslVisualizationManager.ts

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)