redhat-developer / yaml-language-server

Language Server for YAML Files
MIT License
1.1k stars 264 forks source link

Is there tilde expanstion feature on the horizon (or already supported) in schemas paths? #956

Open nugged opened 8 months ago

nugged commented 8 months ago

I.e. we have this: https://github.com/redhat-developer/yaml-language-server?tab=readme-ov-file#more-examples-of-schema-association

"yaml.schemas": {
    "http://json.schemastore.org/composer": ["/*"],
    "file:///home/johnd/some-schema.json": ["some.yaml"],
    "../relative/path/schema.json": ["/config*.yaml"],
    "/Users/johnd/some-schema.json": ["some.yaml"],
}

which allows even relative paths, but nothing is said about if I want to have:

    "~/some/home/path/schema.json": ["/config*.yaml"],

or any other ways to make this work?

Why I want — maybe another acceptable solution — I just want to have some team presets of "yaml.schemas," which should be independent of usernames in file:///home/user/....