github / github/vscode-github-actions

Highlighting of multi-line `if` fields

Open
#333 4 comments 4 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
TypeScript
Stars
660
Forks
213
PR merge metrics
No merged PRs in 30d

Description

**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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.