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

Cannot set yaml.schemas if using multi-root workspaces

Open jncornett opened this issue 6 years ago • 3 comments

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.

jncornett avatar Sep 16 '19 15:09 jncornett

It works if I open the folder directly (instead of in a multi-root workspace).

jncornett avatar Sep 16 '19 15:09 jncornett

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.

jorhett avatar Nov 01 '19 20:11 jorhett

Why wouldn't it work in multi-root workspace though?

NixBiks avatar Apr 27 '22 12:04 NixBiks