Skip to content

Commit 95fe027

Browse files
JiriJiri
authored andcommitted
Function If + corrected typos
1 parent 12a742d commit 95fe027

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"name": "cform",
66
"displayName": "CloudFormation",
77
"description": "VS Code Plugin for CloudFormation",
8-
"version": "0.0.9",
8+
"version": "0.0.10",
99
"publisher": "aws-scripting-guy",
1010
"icon": "images/ManagementTools_CloudFormation.svg",
1111
"repository": {
1212
"type": "git",
13-
"url": "https://github.com/aws-scripting-guy/cformVSCode.git"
13+
"url": "https://github.com/aws-scripting-guy/cform-VSCode.git"
1414
},
1515
"engines": {
1616
"vscode": "^0.10.1"

snippets/snippets.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,20 @@
227227
"description": "",
228228
"scope": "source.cloudformation"
229229
},
230+
"if": {
231+
"prefix": "if",
232+
"body": [
233+
"",
234+
"{\"Fn::If\":[",
235+
" ${1:condition_name},",
236+
" ${2:value_if_true},",
237+
" ${3:value_if_false}",
238+
" ]",
239+
"}"
240+
],
241+
"description": "Intrinsic Function - If",
242+
"scope": "source.cloudformation"
243+
},
230244
"internet-gateway": {
231245
"prefix": "internet-gateway",
232246
"body": "\r\n\"${1:igwName}\": {\r\n \"Type\": \"AWS::EC2::InternetGateway\",\r\n \"Properties\": {\r\n \"Tags\": [${2:\"-\"}]\r\n }\r\n},\r\n\"AttachGateway\": {\r\n \"Type\": \"AWS::EC2::VPCGatewayAttachment\",\r\n \"Properties\": {\r\n \"VpcId\": ${3:\"--\"},\r\n \"InternetGatewayId\": { \"Ref\": \"${4:igwName}\" }\r\n }\r\n}\r\n",
@@ -643,7 +657,7 @@
643657
},
644658
"start": {
645659
"prefix": "start",
646-
"body": "\r\n{\r\n \"AWSTemplateFormatVersion\": \"2010-09-09\",\r\n \"Description\": \"${1}\",\r\n \"Metadata\": {\r\n\r\n },\r\n \"Parameters\": {\r\n \r\n },\r\n \"Mappings\": {\r\n\r\n },\r\n \"Conditions\": {\r\n\r\n },\r\n \"Resources\": {\r\n\r\n },\r\n \"Outputs\": {\r\n\r\n }\r\n}\r\n \r\n",
660+
"body": "{\r\n\"AWSTemplateFormatVersion\": \"2010-09-09\",\r\n \"Description\": \"${1}\",\r\n \"Metadata\": {\r\n\r\n },\r\n \"Parameters\": {\r\n \r\n },\r\n \"Mappings\": {\r\n\r\n },\r\n \"Conditions\": {\r\n\r\n },\r\n \"Resources\": {\r\n\r\n },\r\n \"Outputs\": {\r\n\r\n }\r\n}",
647661
"description": "",
648662
"scope": "source.cloudformation"
649663
},

0 commit comments

Comments
 (0)