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

Incorrect string behaviour if symbol ':' apears

Open MaxLevs opened this issue 1 year ago • 0 comments

Describe the bug

In .gitlab-ci.yaml files string literal value parsing is broken for some reason. I have a string "Version: [$VERSION] BUID [$CI_PIPELINE_IID]" which contains sybmol :. The part Version: is treated not as part of string but common yaml.

I don't exactly sure if the problem related with this repo or gitlab's.

Expected Behavior

String literal value treats as just string

Current Behavior

Part of string treats as part of yaml

image

Steps to Reproduce

  1. Create a .gitlab-ci.yaml file
  2. Set schema to gitlab-ci
  3. Add script - echo "Build number: $CI_PIPELINE_IID"

Environment

  • [ ] Windows
  • [ ] Mac
  • [ ] Linux

MaxLevs avatar Feb 11 '24 11:02 MaxLevs