Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set yaml.schemas if using multi-root workspaces #229

Open
jncornett opened this issue Sep 16, 2019 · 3 comments
Open

Cannot set yaml.schemas if using multi-root workspaces #229

jncornett opened this issue Sep 16, 2019 · 3 comments
Labels

Comments

@jncornett
Copy link

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
Copy link
Author

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

@JPinkney JPinkney added the bug label Sep 16, 2019
@jorhett
Copy link

jorhett commented Nov 1, 2019

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.

@NixBiks
Copy link

NixBiks commented Apr 27, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants