!reference[key, subkey] is marked as an error: YAML unresolved flag

Checklist

Summary

Steps to reproduce

test.yml:

.common:
  script:
    - echo TEST

test:
  stage: test
  script:
    - !reference[.common, script]

What is the current bug behavior?

!reference[.common, script] is underlined red as an error:

Unresolved tag: !reference YAML
gitlab-ci
source: ci.json

What is the expected correct behavior?

!reference gitlab specific YAML tag should not be reported as an error.

Relevant logs and/or screenshots

image

Possible fixes

Edited by Selivanov Pavel