-
Notifications
You must be signed in to change notification settings - Fork 255
Closed
redhat-developer/yaml-language-server
#898Labels
Description
Describe the bug
I've got the following files:
-
permission.schema.yml--- $id: urn:x-intern $schema: http://json-schema.org/draft/2020-12/schema type: object additionalProperties: type: object required: [name] additionalProperties: false properties: name: type: string
-
permission.yml--- foo: name: bar
-
.vscode/settings.json{ "yaml.schemas": { "./permission.schema.yml": "permission.yml" } }
Expected Behavior
The permission.schema.yml should not be applied to itself:
- It has its own
$schemaproperty, pointing to the JSON schema draft 2020-12. - The configured glob pattern (
permission.yml) does not matchpermission.schema.yml.
Current Behavior
The local schema is applied to the local schema itself, resulting in a false problem detection:
Steps to Reproduce
- Open VSCode in an existing or new workspace/folder.
- Create the files
permission.yml,permission.schema.ymland.vscode/settings.json. - Open the
permission.schema.ymlin the editor. - Observe the errors/problems.
Environment
- Windows
- Mac
- Linux (Debian 11, X11, Gnome)
- other (please specify)
Extension is redhat.vscode-yaml v1.11.0.
Reactions are currently unavailable
