yaml-language-server icon indicating copy to clipboard operation
yaml-language-server copied to clipboard

Support for hash URLs in `yaml.schemas` VS Code settings | ex: `my.schema.yaml#properties/someProp`

Open JulianCataldo opened this issue 1 year ago • 0 comments

Is your enhancement related to a problem? Please describe.

# yaml-language-server: $schema=../boat.schema.yaml#properties/someFeatures

#properties/someFeatures works.

"yaml.schemas": {
    "content/boats/boat.schema.yaml#properties/someFeatures": [
      "content/boats/*/some-features.yaml"
    ]
}

#properties/someFeatures doesn't seems to work?

Describe the solution you would like

Hash schema URLs working in global workspace VS Code settings

Describe alternatives you have considered

Splitting properties in sub-files schema; but generate too much noise.
OR putting # yaml-language-server: $schema=... everywhere it's needed (noisy, too).

Additional context

Working on this experiment:
https://github.com/JulianCataldo/content-components

JulianCataldo avatar Jul 26 '22 06:07 JulianCataldo