github / github/vscode-github-actions

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

Open
#248 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
660
Forks
213
PR merge metrics
No merged PRs in 30d

Description

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

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.