{"action":"opened","issue":{"url":"https://api.github.com/repos/chrmarti/testissues/issues/14369","repository_url":"https://api.github.com/repos/chrmarti/testissues","labels_url":"https://api.github.com/repos/chrmarti/testissues/issues/14369/labels{/name}","comments_url":"https://api.github.com/repos/chrmarti/testissues/issues/14369/comments","events_url":"https://api.github.com/repos/chrmarti/testissues/issues/14369/events","html_url":"https://github.com/chrmarti/testissues/issues/14369","id":299078507,"number":14369,"title":"ARM template variable copy block highlighting error","user":{"login":"vscodebot[bot]","id":28792856,"avatar_url":"https://avatars2.githubusercontent.com/in/2406?v=4","gravatar_id":"","url":"https://api.github.com/users/vscodebot%5Bbot%5D","html_url":"https://github.com/apps/vscodebot","followers_url":"https://api.github.com/users/vscodebot%5Bbot%5D/followers","following_url":"https://api.github.com/users/vscodebot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/vscodebot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/vscodebot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vscodebot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/vscodebot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/vscodebot%5Bbot%5D/repos","events_url":"https://api.github.com/users/vscodebot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/vscodebot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-21T18:27:59Z","updated_at":"2018-02-21T18:27:59Z","closed_at":null,"author_association":"NONE","body":"!!! Issue Type\r\nBug\r\n\r\n!!! Description\r\n\r\nThere is a syntax highlighting error in the azurerm-vscode-tools extension when editing ARM templates. In the following block in the variables section, the opening \"copy\": block is underlined green indicating that it is never used and all references to the name \"generatedSecurityRules\" are underlined red indicating that it is not defined. The template actually executes fine when run against the Azure API.\r\n\r\n```\r\n\"copy\": [\r\n            {\r\n                \"name\": \"generatedSecurityRules\",\r\n                \"count\": \"[length(parameters('appServiceRules'))]\",\r\n                \"input\": {\r\n                    \"name\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].name]\",\r\n                    \"properties\": {\r\n                        \"description\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].description]\",\r\n                        \"protocol\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].protocol]\",\r\n                        \"sourcePortRange\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].sourcePortRange]\",\r\n                        \"destinationPortRange\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].destinationPortRange]\",\r\n                        \"destinationPortRanges\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].destinationPortRanges]\",\r\n                        \"sourceAddressPrefixes\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].sourceAddressPrefixes]\",\r\n                        \"destinationAddressPrefixes\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].destinationAddressPrefixes]\",\r\n                        \"access\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].access]\",\r\n                        \"priority\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].priority]\",\r\n                        \"direction\": \"[parameters('appServiceRules')[copyindex('generatedSecurityRules')].direction]\"\r\n                    }\r\n                }\r\n            }\r\n        ],\r\n        \"securityRuleList\": \"[concat(variables('generatedSecurityRules'), parameters('denyInternetRule'))]\"\r\n```\r\n\r\n!!! VS Code Info\r\n\r\nVS Code version: Code 1.20.1 (f88bbf9137d24d36d968ea6b2911786bfe103002, 2018-02-13T15:23:28.607Z)\r\nOS version: Darwin x64 16.7.0\r\n\r\n<details>\r\n<summary>System Info</summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i7-4870HQ CPU ! 2.50GHz (8 x 2500)|\r\n|Load (avg)|2, 2, 2|\r\n|Memory (System)|16.00GB (0.69GB free)|\r\n|Process Argv|/Applications/Visual Studio Code.app/Contents/MacOS/Electron -psn_0_3273503|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n</details><details><summary>Extensions (3)</summary>\r\n\r\nExtension|Author (truncated)|Version\r\n---|---|---\r\nPowerShell|ms-|1.5.1\r\nteam|ms-|1.122.0\r\nazurerm-vscode-tools|msa|0.4.0\r\n\r\n\r\n</details>\r\nReproduces only with extensions"}}
{"actor":{"display_login":"vscodebot"}}