redhat-developer / redhat-developer/vscode-yaml
Duplicate line with reference
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Describe the bug
Hi, I am using a reference in my YAML file, and I found that my VC code duplicates the line at the top of the file. This duplication does not modify my YAML. After I disabled this plugin, the issue solve.
Expected Behavior
Should not duplicate line
Current Behavior
It duplicate line
Steps to Reproduce
- Create following yaml in vscode
image: hashicorp/terraform:1.8
definitions:
scripts:
install-awscli: &install-awscli |
apk add curl
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.30.zip" -o "awscliv2.zip" && unzip awscliv2.zip
./aws/install
aws --version
step:
plan: &plan
name: "Terraform Plan"
script:
- *install-awscli
Environment
- Windows
- Mac
- Linux
- other (please specify)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Reproduce the issue in VS Code on macOS using the YAML example with anchors and references, then trace the extension behavior that duplicates the top line. Done means the document no longer gains a duplicate line while the YAML remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, yaml
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100