redhat-developer / redhat-developer/vscode-yaml
Custom tag with angle brackets triggers an error
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Describe the bug
I added a !<import> custom tag to my yaml.customTags config:
But when I try to use it in a YAML file, i get an "unknown tag" error:
I noticed that if I add an !import custom tag instead of !<import> it just works.
Is there any kind of limitation with using angle brackets? I really can't remove them
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
Reproduce the issue using the yaml.customTags configuration with ! and a YAML file that uses the tag. Start by locating the custom-tag validation and parsing entry points; done means angle-bracket tags are accepted without an unknown-tag error, while existing !import behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- yaml
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100