Skip to content

Commit

Permalink
Snippet res-rg - removed single quotes (#4275)
Browse files Browse the repository at this point in the history
* removed single quotes around the symbolic name
  • Loading branch information
egullbrandsson authored Sep 7, 2021
1 parent 65bca95 commit ec0c24b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/Bicep.Core.Samples/Files/Completions/declarations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,7 @@
"detail": "Resource Group",
"documentation": {
"kind": "markdown",
"value": "```bicep\nresource 'resourceGroup' 'Microsoft.Resources/resourceGroups@2021-04-01' = {\n name: 'name'\n location: 'eastasia'\n tags:{\n 'tag': 'tagValue' \n }\n}\n\n```"
"value": "```bicep\nresource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {\n name: 'name'\n location: 'eastasia'\n tags:{\n 'tag': 'tagValue' \n }\n}\n\n```"
},
"deprecated": false,
"preselect": false,
Expand All @@ -2173,7 +2173,7 @@
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "resource ${1:'resourceGroup'} 'Microsoft.Resources/resourceGroups@2021-04-01' = {\n name: ${2:'name'}\n location: ${3|'eastasia','southeastasia','centralus','eastus','eastus2','westus','northcentralus','southcentralus','northeurope','westeurope','japanwest','japaneast','brazilsouth','australiaeast','australiasoutheast','southindia','centralindia','westindia','canadacentral','canadaeast','uksouth','ukwest','westcentralus','westus2','koreacentral','koreasouth','francecentral','francesouth','australiacentral','australiacentral2','uaecentral','uaenorth','southafricanorth','southafricawest','switzerlandnorth','switzerlandwest','germanynorth','germanywestcentral','norwaywest','norwayeast','brazilsoutheast','westus3','swedencentral'|}\n tags:{\n 'tag': 'tagValue' \n }\n}\n"
"newText": "resource ${1:resourceGroup} 'Microsoft.Resources/resourceGroups@2021-04-01' = {\n name: ${2:'name'}\n location: ${3|'eastasia','southeastasia','centralus','eastus','eastus2','westus','northcentralus','southcentralus','northeurope','westeurope','japanwest','japaneast','brazilsouth','australiaeast','australiasoutheast','southindia','centralindia','westindia','canadacentral','canadaeast','uksouth','ukwest','westcentralus','westus2','koreacentral','koreasouth','francecentral','francesouth','australiacentral','australiacentral2','uaecentral','uaenorth','southafricanorth','southafricawest','switzerlandnorth','switzerlandwest','germanynorth','germanywestcentral','norwaywest','norwayeast','brazilsoutheast','westus3','swedencentral'|}\n tags:{\n 'tag': 'tagValue' \n }\n}\n"
},
"command": {
"command": "bicep.Telemetry",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// $1 = resourceGroup
// $2 = 'name'
// $3 = 'westeurope'
targetScope = 'subscription'
// $1 = resourceGroup
// $2 = 'name'
// $3 = 'westeurope'
targetScope = 'subscription'
resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
name: 'name'
location: 'westeurope'
tags:{
'tag': 'tagValue'
}
}
// Insert snippet here

// Insert snippet here

16 changes: 8 additions & 8 deletions src/Bicep.LangServer/Snippets/Templates/res-rg.bicep
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Resource Group
resource /*${1:'resourceGroup'}*/resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
name: /*${2:'name'}*/'name'
location: /*${3|'eastasia','southeastasia','centralus','eastus','eastus2','westus','northcentralus','southcentralus','northeurope','westeurope','japanwest','japaneast','brazilsouth','australiaeast','australiasoutheast','southindia','centralindia','westindia','canadacentral','canadaeast','uksouth','ukwest','westcentralus','westus2','koreacentral','koreasouth','francecentral','francesouth','australiacentral','australiacentral2','uaecentral','uaenorth','southafricanorth','southafricawest','switzerlandnorth','switzerlandwest','germanynorth','germanywestcentral','norwaywest','norwayeast','brazilsoutheast','westus3','swedencentral'|}*/'location'
tags:{
'tag': 'tagValue'
}
}
// Resource Group
resource /*${1:resourceGroup}*/resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
name: /*${2:'name'}*/'name'
location: /*${3|'eastasia','southeastasia','centralus','eastus','eastus2','westus','northcentralus','southcentralus','northeurope','westeurope','japanwest','japaneast','brazilsouth','australiaeast','australiasoutheast','southindia','centralindia','westindia','canadacentral','canadaeast','uksouth','ukwest','westcentralus','westus2','koreacentral','koreasouth','francecentral','francesouth','australiacentral','australiacentral2','uaecentral','uaenorth','southafricanorth','southafricawest','switzerlandnorth','switzerlandwest','germanynorth','germanywestcentral','norwaywest','norwayeast','brazilsoutheast','westus3','swedencentral'|}*/'location'
tags:{
'tag': 'tagValue'
}
}

0 comments on commit ec0c24b

Please sign in to comment.