aws / aws/aws-toolkit-vscode

Variable placeholder not recognised in state-machine.asl.json

Open
#8,796 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

## Problem

Where a state machine file with **.asl.json** exists, red lines appear in VS Code, stating the state machine json is not valid with a valid variable placeholder, and a visual representation of the state machine subsequently not being rendered.

```
"Wait": {
"Type": "Wait",
"Seconds": ${someVariablePlaceholder},
"Next": "Some step",
"QueryLanguage": "JSONata",
"Output": "{% $states.input %}"
},
```

## Steps to reproduce the issue

See above

## Expected behavior

## System details (run `AWS: About` and/or `Amazon Q: About`)

- OS: Mac OS X
- Visual Studio Code version: 1.120.0
- AWS Toolkit version: 4.5.0

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem in VS Code 1.120.0 with the provided state-machine.asl.json snippet and AWS Toolkit 4.5.0. Trace the validation and visual-rendering entry points for state machine files, then verify that the variable placeholder produces no invalid-JSON diagnostic and that the visual representation renders.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.