dannysteenman / vscode-cloudformation-snippets

This extension adds snippets for all the AWS CloudFormation resources into Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=dannysteenman.cloudformation-yaml-snippets
Apache License 2.0
27 stars 8 forks source link

No Longer Working on Github Codespaces #17

Closed Grunet closed 4 months ago

Grunet commented 4 months ago

Describe the bug The "cfn" shortcut no longer works in YAML files in Github Codespaces

To Reproduce Steps to reproduce the behavior:

  1. Open a codespace in any Github repository
  2. Install the extension
  3. Create a YAML file
  4. Type "cfn" and note that tabbing does nothing

Expected behavior The skeleton of a CloudFormation template should appear

Screenshots N/A

Desktop (please complete the following information):

Additional context The extension still seems to work on my local VS Code instance

dannysteenman commented 4 months ago

Hi @Grunet thanks for opening this gh issue. I've tried to replicate it in a blank github codespace with the extension installed and I noticed the same behaviour in a yaml file. However, json filetypes the autocomplete seems to be working via the extension.

I did some further digging and ran a clean github codespace without extensions enabled and then added a manual snippet for the YAML language (yaml.json):

Screenshot 2024-06-26 at 20 52 40

If you uncomment the example in the yaml snippet config:

Screenshot 2024-06-26 at 20 56 37

and try to type "log" in a new yaml file then the autocomplete doesn't trigger as well.

It seems to be a bug with github codespaces, since the same issue occur without the extension.