redhat-developer / redhat-developer/vscode-yaml

Custom tag with angle brackets triggers an error

Open
#994 0 comments 0 reactions 0 assignees View on GitHub

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:
image

But when I try to use it in a YAML file, i get an "unknown tag" error:
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.