vscode-yaml
vscode-yaml copied to clipboard
Cannot set yaml.schemas if using multi-root workspaces
Possible regression of #50
I'm using:
$ code --version
1.38.1
b37e54c98e1a74ba89e03073e5a3761284e3ffb0
x64
and VSCode-YAML version:
0.5.3
I have configured a multi-root workspace:
In the folder .vscode/settings.json, I have the following:
{
"yaml.schemas": {
"./solution/packages/step-templates/lib/schema/step-template-schema.json": "./solution/packages/step-templates/lib/steps/**/*.yaml"
}
}
The setting is dimmed and hovering over it produces the message:
This setting cannot be applied now. It will be applied when you open this folder directly.
It works if I open the folder directly (instead of in a multi-root workspace).
This doesn't appear to be supported by VsCode. Neither JSON nor YAML shows up in the Extensions settings for folders when working in a multi-root namespace.
I agree, I think that schemas should be part of and specified by the project, and not pushed out to the shared workspace.
Why wouldn't it work in multi-root workspace though?