github / github/vscode-github-actions

Indent added if `---` is at top of yaml file (v0.26.1)

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

描述

**To Reproduce**

With only the GitHub Actions extension enabled, If I paste in the following .yaml file:
```yaml
---
name: Example
# rest of file
```
the editor immediately reformats the pasted text as
```yaml
---
name: Example
# rest of file
```
When the extension is disabled, the pasted test is not indented after the `---` line.

If
```yaml
name: Example
# rest of file
```
is pasted, no extra indent is added.

**Expected behavior**

Pasted text is not indented

**Extension Version**
`v0.26.1`

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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