vscode-yaml
vscode-yaml copied to clipboard
`.clang-format` have schema, extension complain `No JSON Schema`
Describe the bug
.clang-format have schema, extension complain No JSON Schema
Expected Behavior
.clang-format have schema, extension should detect it
Current Behavior
.clang-format have schema, extension complain No JSON Schema
Steps to Reproduce
/path/to/c/.clang-format
BasedOnStyle: LLVM
YAML UI No JSON Schema when
{
"folders": [
{
"name": "c",
"path": "/path/to/c",
},
],
"settings": {
"yaml.schemas": {
// "https://json.schemastore.org/clang-format.json": ".clang-format"
},
},
}
YAML UI .clang-format config when using below workaround
{
"folders": [
{
"name": "c",
"path": "/path/to/c",
},
],
"settings": {
"yaml.schemas": {
"https://json.schemastore.org/clang-format.json": ".clang-format"
},
},
}
But this config should be default within schema store.
https://github.com/SchemaStore/schemastore/blob/bbfad980a9dc222d0d6d7d91a87286eca83a22b0/src/api/json/catalog.json#L6870-L6875
{
"name": "clang-format (.clang-format)",
"description": "yaml clang-format config",
"fileMatch": [".clang-format"],
"url": "https://json.schemastore.org/clang-format.json"
},
So, there also might be other config file, with schema, but not silently not enchanced by yaml extension.
Environment
- [ ] Windows
- [ ] Mac
- [x] Linux
- [ ] other (please specify)