Title: double curly brace can have incorrect syntax highlighting inside format within expression · Issue #394 · github/vscode-github-actions · GitHub
Open Graph Title: double curly brace can have incorrect syntax highlighting inside format within expression · Issue #394 · github/vscode-github-actions
X Title: double curly brace can have incorrect syntax highlighting inside format within expression · Issue #394 · github/vscode-github-actions
Description: Describe the bug When a double closing curly brace (}} is used as an escape to represent a single closing curly brace (}) inside a format function that is within an expression, it gets incorrectly colored as the end of the expression. To...
Open Graph Description: Describe the bug When a double closing curly brace (}} is used as an escape to represent a single closing curly brace (}) inside a format function that is within an expression, it gets incorrectly ...
X Description: Describe the bug When a double closing curly brace (}} is used as an escape to represent a single closing curly brace (}) inside a format function that is within an expression, it gets incorrectly ...
Opengraph URL: https://github.com/github/vscode-github-actions/issues/394
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"double curly brace can have incorrect syntax highlighting inside format within expression","articleBody":"**Describe the bug**\r\nWhen a double closing curly brace (`}}` is used as an escape to represent a single closing curly brace (`}`) inside a format function that is within an expression, it gets incorrectly colored as the end of the expression.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. With the workflow file below, open in vscode editor\r\n2. View the syntax highlighting as incorrect. The first double closing curly brace on line 19 should not be yellow.\r\n\r\n```\r\nname: Double Curly Brace Workflow\r\n\r\non:\r\n workflow_dispatch:\r\n inputs:\r\n something-to-print:\r\n description: Something to print in powershell.\r\n required: true\r\n type: string\r\n\r\njobs:\r\n double_curly_brace_job:\r\n runs-on:\r\n labels: windows\r\n\r\n steps:\r\n - name: Double Curly Brace Step\r\n env:\r\n VAR_WITH_DOUBLE_CURLY_BRACE: \"${{ format('{{ {0} }}', inputs.something-to-print) }}\"\r\n run: |\r\n echo \"${{ env.VAR_WITH_DOUBLE_CURLY_BRACE }}\"\r\n```\r\n\r\n**Expected behavior**\r\nThe last double closing curly brace should be yellow on line 19.\r\n\r\n**Screenshots**\r\n\u003cimg width=\"1457\" alt=\"image\" src=\"https://github.com/user-attachments/assets/96c25c26-0fd8-49b3-bb94-d49904baf8b3\">\r\n\r\n**Extension Version**\r\n`v0.26.5`\r\n\r\n**Additional context**\r\nI am testing this on Mac OS Sonoma 14.5\r\n`code --version\r\n1.91.1\r\nf1e16e1e6214d7c44d078b1f0607b2388f29d729\r\nx64`\r\n","author":{"url":"https://github.com/danny-kern-simplisafe","@type":"Person","name":"danny-kern-simplisafe"},"datePublished":"2024-09-23T19:59:00Z","url":"https://github.com/github/vscode-github-actions/issues/394"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7f87ce65-cb71-c452-c973-aa94981df7fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D59C:17C3A3:20D465:2DCBAF:6AFD81A6 |
| html-safe-nonce | 60bccce6925e0fa63e3ea9035fe7b5374189cfb5cd7ee29631a4fdea6a5d95e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTlDOjE3QzNBMzoyMEQ0NjU6MkRDQkFGOjZBRkQ4MUE2IiwidmlzaXRvcl9pZCI6IjQ2NjMwODA1OTk2MTM3MDI1NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 62aa883150629d38807234e2acf065ba0bac76c19800dc32651215b911e966ac |
| hovercard-subject-tag | issue:2543538411 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/vscode-github-actions/394/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e84cf3cfa08baf1cef8385b9acabaf7129a5e4c5db85f0347735b49119fb96e/github/vscode-github-actions/issues/394 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e84cf3cfa08baf1cef8385b9acabaf7129a5e4c5db85f0347735b49119fb96e/github/vscode-github-actions/issues/394 |
| og:image:alt | Describe the bug When a double closing curly brace (}} is used as an escape to represent a single closing curly brace (}) inside a format function that is within an expression, it gets incorrectly ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danny-kern-simplisafe |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42d4967e3c8afca51ccac31f419a705af777226a95f025ea73387d87a306b326 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/vscode-github-actions git https://github.com/github/vscode-github-actions.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 616663763 |
| octolytics-dimension-repository_nwo | github/vscode-github-actions |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 616663763 |
| octolytics-dimension-repository_network_root_nwo | github/vscode-github-actions |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2329ceed0bc2c7b7c3b9f5f2db6abfc7b6fc3a50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width