diff --git a/CHANGELOG.md b/CHANGELOG.md index eb62d7f8..3963f9cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ #### 0.11.0 - Make yaml-language-server available as ESM and UMD modules in the `/lib` directory [#305](https://github.com/redhat-developer/yaml-language-server/pull/305) +- Fix: `yaml.schemas` configuration doesn't work on windows with full path [#347](https://github.com/redhat-developer/vscode-yaml/issues/347) #### 0.10.1 diff --git a/README.md b/README.md index 1e229412..1dd24815 100755 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ and that will associate the composer schema with myYamlFile.yaml. When associating a schema it should follow the format below -``` +```json yaml.schemas: { "url": "globPattern", "Kubernetes": "globPattern" @@ -104,7 +104,7 @@ yaml.schemas: { e.g. -``` +```json yaml.schemas: { "https://json.schemastore.org/composer": "/*" } @@ -112,7 +112,7 @@ yaml.schemas: { e.g. -``` +```json yaml.schemas: { "kubernetes": "/myYamlFile.yaml" } @@ -120,13 +120,29 @@ yaml.schemas: { e.g. -``` +```json yaml.schemas: { "https://json.schemastore.org/composer": "/*", "kubernetes": "/myYamlFile.yaml" } ``` +On Windows with full path: + +```json +yaml.schemas: { + "C:\\Users\\user\\Documents\\custom_schema.json": "someFilePattern.yaml", +} +``` + +On Mac/Linux with full path: + +```json +yaml.schemas: { + "/home/user/custom_schema.json": "someFilePattern.yaml", +} +``` + #### Multi root schema association: You can also use relative paths when working with multi root workspaces.