Search code examples
jsonamazon-web-servicesvisual-studio-codeyaml

VSCode JSON to YAML auto conversion on save


I normally design aws step functions in Workflow Studio and copy the json file back into my source code control.

Up until about a month ago, if I paste the statemachine JSON code into file_name.asl.yml, something auto converts the json into yaml.

I'm not sure what extension was doing the auto conversion. I have these extensions:

  • AWS Toolkit (Amazon Web Services)
  • YAML (Red Hat)

But it is no longer the case recently. Now, if I paste json, it just save it as json.

Anyone know which extension was doing the json->yaml conversion on save?


Solution

  • AWS step function designer now support YAML mode so we no longer have the trouble of copying JSON and converting to YAML for source control etc.