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

schema path evaluated aggressively

Open unional opened this issue 3 years ago • 1 comments

Describe the bug

.vscode/settings.json:

{
  "yaml.schemas": {
    "./schema1.json": ["**/some-folder/**/*.yaml"],
    "./schema2.json": ["**/some-folder/*.yaml"]
  }
}

Expected Behavior

The file ./packages/some-folder/abc/x.yaml should be validated against schema1.json only.

Current Behavior

It is validated against schema1.json and schema2.json

Environment

  • [x] Windows

unional avatar Apr 13 '21 22:04 unional

Related to https://github.com/redhat-developer/yaml-language-server/issues/422

evidolob avatar Apr 14 '21 06:04 evidolob