github / github/vscode-github-actions

No syntax highlight in workflow files

未关闭
#373 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
660
派生
213
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
I have the following VS Code configuration:

```json
"[github-actions-workflow]": {
"editor.defaultFormatter": "github.vscode-github-actions",
"editor.formatOnSave": true,
"editor.tabSize": 2,
},
```

Yet, when trying to modify `.github/workflows/test.yml`, I get no syntax highlight for the file, despite being correctly recognized as a `Github Actions Workflow`.

![image](https://github.com/user-attachments/assets/125a55c6-bd64-4df2-ae23-0b6da6ba1505)

**To Reproduce**
Steps to reproduce the behavior:
1. With this workflow '...'
2. Do this '...'
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Extension Version**
`v1.x.y`

**Additional context**
Add any other context about the problem here.

贡献指南

打开贡献指南

调研方向

Reproduce the issue with the provided VS Code language configuration and a representative .github/workflows/test.yml file. No source file, test, or entry point is named in the report, so first locate the extension's workflow-language and syntax-highlighting setup; done means workflow files receive syntax highlighting while retaining their GitHub Actions language mode.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript, vscode
领域
devtools
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
32/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。