redhat-developer / redhat-developer/vscode-yaml

2 Character custom tags not properly detected

Open
#973 0 comments 1 reaction 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

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.