aws-toolkit-vscode
aws-toolkit-vscode copied to clipboard
Prompt users to install VSCode-YAML when a non template.yaml CloudFormation/SAM file is opened
Problem
Currently VSCode only prompts users to install VSCode-YAML when a template.yaml
file is opened in their workspace. Now that we have more dynamic detection of whether or not a file is CloudFormation/SAM it would be cool to prompt users if we detect that the current file is CloudFormation/SAM, regardless of the name of the file.
Expected behavior
Prompt the user to install VSCode-YAML when a CloudFormation/SAM file regardless of whether or not the extension is named template.yaml
/template.yml
Related Code: https://github.com/aws/aws-toolkit-vscode/blob/8ff0737efae7f6ad2767689943335f0c2f98283d/src/shared/sam/activation.ts#L258