github / github/vscode-github-actions

Highlighting of multi-line `if` fields

Abierto
#333 4 comentarios 4 reacciones 0 asignados Ver en GitHub
enhancement good first issue help wanted
Lenguaje dominante
TypeScript
Estrellas
660
Forks
213
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

En el issue no se nombra ningún archivo, prueba ni punto de entrada. Empieza por localizar la implementación del resaltado de sintaxis de la extensión y cualquier prueba para GitHub Actions expressions; después, compara el resaltado actual con el ejemplo multilínea solicitado. La tarea está terminada cuando las expresiones multilínea se resaltan correctamente sin romper el resaltado existente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript
Área
devtools
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.