github / github/vscode-github-actions

Highlighting of multi-line `if` fields

未關閉
#333 4 則留言 4 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement good first issue help wanted
主要語言
TypeScript
星號
660
分支
213
PR 合併指標
30 天內沒有已合併 PR

描述

**Is your feature request related to a problem? Please describe.**
I often use a complex `if` field to enable smart skipping of the `push` event trigger.
![image](https://github.com/github/vscode-github-actions/assets/54282183/0cc5024b-50d1-4055-8739-333fa844de3a)
(note that without the `${{ }}` the editor yields a syntax error saying `Unexpected symbol: '=='`. Adding a space after the initial `!` seems to eliminate the error, but I'm not sure if that works (#290).)

Writing it like that looks horrible so I format it as a multi-line string, but then the syntax highlighting is broken.
![image](https://github.com/github/vscode-github-actions/assets/54282183/be0cd7d5-d56f-4e95-9ca9-ae1333201dfc)

**Describe the solution you'd like**
It would be really nice to have syntax highlighting for multi-line expressions. It would look something like this:
![image](https://github.com/github/vscode-github-actions/assets/54282183/73232a74-4eec-4820-aa77-3a9a07386b9c)

貢獻指南

開啟貢獻指南

研究方向

No file, test, or entry point is named in the issue. Start by locating the extension's syntax-highlighting implementation and any tests for GitHub Actions expressions, then compare current highlighting with the requested multi-line example. Done means multi-line expressions are highlighted correctly without breaking existing highlighting.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
devtools
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。