github / github/vscode-github-actions
Add support for embedding languages for the `runs` keyword
- 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.**
Not specifically.
**Describe the solution you'd like**
I would like to see my step `runs` show the correct syntax when I'm editing GH Actions or Workflows. Thank you!
**Additional context**
IntelliJ supports this via a feature called [Language Injection](https://plugins.jetbrains.com/docs/intellij/language-injection.html). Users can either add a comment before the key such as `# language=sh` or modify their JSON Schema to provide the `"x-intellij-language-injection": "Shell Script"` property.
For VSCode, a request for generic support didn't gain much traction. Based on the discussion in [microsoft/vscode#1751](https://github.com/microsoft/vscode/issues/1751#issuecomment-919998146) it seems the preferred way to do this is with an extension using [Grammar Injection](https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide?sa=X&ved=2ahUKEwjd1NjivqXyAhUoJrkGHQyJAq4Q9QF6BAgFEAI#injection-grammars) or [Embedded Languages](https://code.visualstudio.com/api/language-extensions/embedded-languages).
Guía de contribución
Línea de trabajo
Comienza revisando la documentación enlazada sobre VS Code Grammar Injection y Embedded Languages, y después compara el enfoque de IntelliJ Language Injection descrito en el issue. Se considera completado cuando los valores de la clave `runs` de GitHub Actions muestran la sintaxis del lenguaje incrustado correspondiente al editar workflows.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- github-actions, typescript, vscode
- Área
- developer-experience, tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Tranquilo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100