Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

double curly brace can have incorrect syntax highlighting inside format within expression

オープン
#394 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
tooling

調査の方向性

まず VS Code エディターでワークフローを再現し、拡張機能がネストされた GitHub Actions 式とフォーマット文字列をどのようにハイライトするかを調べます。式の解析における構文ハイライトのエントリーポイントを追跡し、エスケープされた二重の閉じ中括弧が式の終端として扱われず、最後の閉じ中括弧は引き続きハイライトされることを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug

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 Reproduce
Steps to reproduce the behavior:

  1. With the workflow file below, open in vscode editor
  2. View the syntax highlighting as incorrect. The first double closing curly brace on line 19 should not be yellow.
name: Double Curly Brace Workflow

on:
  workflow_dispatch:
    inputs:
      something-to-print:
        description: Something to print in powershell.
        required: true
        type: string

jobs:
  double_curly_brace_job:
    runs-on:
      labels: windows

    steps:
    - name: Double Curly Brace Step
      env:
        VAR_WITH_DOUBLE_CURLY_BRACE: "${{ format('{{ {0} }}', inputs.something-to-print) }}"
      run: |
        echo "${{ env.VAR_WITH_DOUBLE_CURLY_BRACE }}"

Expected behavior
The last double closing curly brace should be yellow on line 19.

Screenshots
image

Extension Version
v0.26.5

Additional context
I am testing this on Mac OS Sonoma 14.5
code --version 1.91.1 f1e16e1e6214d7c44d078b1f0607b2388f29d729 x64

主要言語
TypeScript
スター
661
フォーク
214
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/vscode-github-actions のほかの issue

github/vscode-github-actions の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。