redhat-developer / redhat-developer/vscode-yaml
2 Character custom tags not properly detected
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Describe the bug
When attempting to add a custom tag to the yaml.customTags setting, if the custom tag has only two characters after the exclamation point (e.g. !if), the tag will not be detected, and tags using the schema will still appear as unresolved tags.
Expected Behavior
The tag should be handled like any other tag, resolving custom tags.
Current Behavior
2 Character tags are not resolved, resulting in erroneous errors.
Steps to Reproduce
Create a tag with 2 characters after the exclamation point used in a yaml file, and observe that it is not resolved like other custom tags.
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
Start by reproducing the issue with a yaml.customTags entry for a two-character tag such as !if on the reported macOS or Linux environments. Trace how custom tags are detected and confirm that the tag resolves without an erroneous unresolved-tag error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100