vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

2 Character custom tags not properly detected

Open wmccoll opened this issue 2 years ago • 0 comments

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
  • [x] Mac
  • [x] Linux
  • [ ] other (please specify)

wmccoll avatar Sep 14 '23 18:09 wmccoll